Skip to content

Commit

Permalink
chore: use light haptic feedback (#5838)
Browse files Browse the repository at this point in the history
* chore: use light haptic feedback

* chore: optimize tabbar & side action animation
  • Loading branch information
LucasXu0 authored Jul 30, 2024
1 parent 735a09b commit 81532d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class _AnimatedGestureDetectorState extends State<AnimatedGestureDetector> {
onTapUp: (details) {
setState(() => scale = 1.0);

HapticFeedbackType.vibrate.call();
HapticFeedbackType.light.call();

widget.onTapUp();
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,16 @@ class _Pages extends StatelessWidget {
onSelected: context.pushView,
endActionPane: (context) {
final view = context.read<ViewBloc>().state.view;
final actions = [
MobilePaneActionType.more,
if (view.layout == ViewLayoutPB.Document)
MobilePaneActionType.add,
];
return buildEndActionPane(
context,
[
MobilePaneActionType.more,
if (view.layout == ViewLayoutPB.Document)
MobilePaneActionType.add,
],
actions,
spaceType: spaceType,
spaceRatio: 4,
spaceRatio: actions.length == 1 ? 3 : 4,
);
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ class MobileSpaceTabBar extends StatelessWidget {
final labelStyle = baseStyle?.copyWith(
fontWeight: FontWeight.w600,
fontSize: 16.0,
height: 20 / 16,
);
final unselectedLabelStyle = baseStyle?.copyWith(
fontWeight: FontWeight.w400,
fontSize: 15.0,
height: 20 / 15,
);

return Container(
Expand Down

0 comments on commit 81532d0

Please sign in to comment.