From 0d68c42aaba08ff3fa39a4af879b441cb4c7b297 Mon Sep 17 00:00:00 2001 From: Mathias Mogensen <42929161+Xazin@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:21:23 +0100 Subject: [PATCH] fix: symmetric padding in mobile database header (#4773) --- .../database/tab_bar/mobile/mobile_tab_bar_header.dart | 8 ++++---- .../lib/plugins/database/tab_bar/tab_bar_view.dart | 7 ++----- 2 files changed, 6 insertions(+), 9 deletions(-) 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.dart index 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 { @override Widget 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( 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.dart index 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 { ), child: const TabBarHeader(), ); - } else { - return const Padding( - padding: EdgeInsets.only(right: 8), - child: MobileTabBarHeader(), - ); } + + return const MobileTabBarHeader(); }, ); },