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.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: symmetric padding in mobile database header (#4773)
Mathias Mogensen0d68c42aaba0
diff --git a/frontend/appflowy_flutter/lib/plugins/database/tab_bar/mobile/mobile_tab_bar_header.dart b/frontend/appflowy_flutter/lib/plugins/database/tab_bar/mobile/mobile_tab_bar_header.dartindex 8081aaf1fc..4cf2846a83 100644--- a/frontend/appflowy_flutter/lib/plugins/database/tab_bar/mobile/mobile_tab_bar_header.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/tab_bar/mobile/mobile_tab_bar_header.dart@@ -1,16 +1,16 @@+import 'package:flutter/material.dart';+import 'package:appflowy/generated/flowy_svgs.g.dart';import 'package:appflowy/mobile/presentation/bottom_sheet/show_transition_bottom_sheet.dart';import 'package:appflowy/mobile/presentation/database/view/database_view_list.dart';import 'package:appflowy/plugins/base/emoji/emoji_text.dart';import 'package:appflowy/plugins/database/application/tab_bar_bloc.dart';-import 'package:appflowy/plugins/database/grid/presentation/layout/sizes.dart';import 'package:appflowy/plugins/database/widgets/setting/mobile_database_controls.dart';import 'package:appflowy/workspace/application/view/view_bloc.dart';import 'package:appflowy/workspace/application/view/view_ext.dart';import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';import 'package:collection/collection.dart';import 'package:flowy_infra_ui/flowy_infra_ui.dart';-import 'package:flutter/material.dart';import 'package:flutter_bloc/flutter_bloc.dart';import '../../grid/presentation/grid_page.dart';@@ -26,11 +26,11 @@ class _MobileTabBarHeaderState extends State<MobileTabBarHeader> {@overrideWidget build(BuildContext context) {return Padding(- padding: const EdgeInsets.only(top: 14.0),+ padding: const EdgeInsets.only(top: 14.0) ++ const EdgeInsets.symmetric(horizontal: 20),child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: [- HSpace(GridSize.leadingHeaderPadding),const _DatabaseViewSelectorButton(),const Spacer(),BlocBuilder<DatabaseTabBarBloc, DatabaseTabBarState>(diff --git a/frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dart b/frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dartindex e44524e3dd..7ed03e4a29 100644--- a/frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dart+++ b/frontend/appflowy_flutter/lib/plugins/database/tab_bar/tab_bar_view.dart@@ -119,12 +119,9 @@ class _DatabaseTabBarViewState extends State<DatabaseTabBarView> {),child: const TabBarHeader(),);- } else {- return const Padding(- padding: EdgeInsets.only(right: 8),- child: MobileTabBarHeader(),- );}++ return const MobileTabBarHeader();},);},