Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: use light haptic feedback (#5838)

Lucas.Xu81532d014ea0
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/base/gesture.dart b/frontend/appflowy_flutter/lib/mobile/presentation/base/gesture.dart
index ba4ab3b1db..ac81ba2122 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/base/gesture.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/base/gesture.dart
@@ -36,7 +36,7 @@ class _AnimatedGestureDetectorState extends State<AnimatedGestureDetector> {
onTapUp: (details) {
setState(() => scale = 1.0);
- HapticFeedbackType.vibrate.call();
+ HapticFeedbackType.light.call();
widget.onTapUp();
},
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart
index 296d305a81..ef46489c0d 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/space/mobile_space.dart
@@ -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,
);
},
),
diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/_tab_bar.dart b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/_tab_bar.dart
index 5602f46f89..fe7ea1e7e9 100644
--- a/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/_tab_bar.dart
+++ b/frontend/appflowy_flutter/lib/mobile/presentation/home/tab/_tab_bar.dart
@@ -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(