mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: symmetric padding in mobile database header (#4773)
This commit is contained in:
parent
0cffe42d80
commit
0d68c42aab
@ -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> {
|
||||
@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<DatabaseTabBarBloc, DatabaseTabBarState>(
|
||||
|
@ -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();
|
||||
},
|
||||
);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user