ソースを参照

fixed top padding

Marty Fuhry 2 年 前
コミット
1f3b8c3d1c
1 ファイル変更6 行追加2 行削除
  1. 6 2
      mobile/lib/shared/views/tab_controller_page.dart

+ 6 - 2
mobile/lib/shared/views/tab_controller_page.dart

@@ -14,7 +14,6 @@ class TabControllerPage extends ConsumerWidget {
 
     navigationRail(TabsRouter tabsRouter) {
       return NavigationRail(
-        leading: Padding(padding: EdgeInsets.only(top: MediaQuery.of(context).padding.top)),
         labelType: NavigationRailLabelType.all,
         selectedIndex: tabsRouter.activeIndex,
         onDestinationSelected: (index) {
@@ -23,7 +22,12 @@ class TabControllerPage extends ConsumerWidget {
         },
         destinations: [
           NavigationRailDestination(
-            padding: const EdgeInsets.all(4),
+            padding: EdgeInsets.only(
+              top: MediaQuery.of(context).padding.top + 4,
+              left: 4,
+              right: 4,
+              bottom: 4,
+            ),
             icon: const Icon(Icons.photo_outlined), 
             label: const Text('tab_controller_nav_photos').tr(),
           ),