mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-03 01:00:14 +08:00
@@ -1,8 +1,28 @@
|
||||
diff --git a/packages/flutter/lib/src/material/navigation_drawer.dart b/packages/flutter/lib/src/material/navigation_drawer.dart
|
||||
index 8a16764cb0c..6b8545c3781 100644
|
||||
index 8a16764cb0c..031c2267d97 100644
|
||||
--- a/packages/flutter/lib/src/material/navigation_drawer.dart
|
||||
+++ b/packages/flutter/lib/src/material/navigation_drawer.dart
|
||||
@@ -410,7 +410,7 @@ class _NavigationDestinationBuilder extends StatelessWidget {
|
||||
@@ -67,8 +67,11 @@ class NavigationDrawer extends StatelessWidget {
|
||||
this.onDestinationSelected,
|
||||
this.selectedIndex = 0,
|
||||
this.tilePadding = const EdgeInsets.symmetric(horizontal: 12.0),
|
||||
+ this.flex = 1,
|
||||
});
|
||||
|
||||
+ final int flex;
|
||||
+
|
||||
/// The background color of the [Material] that holds the [NavigationDrawer]'s
|
||||
/// contents.
|
||||
///
|
||||
@@ -192,6 +195,7 @@ class NavigationDrawer extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
?header,
|
||||
Expanded(
|
||||
+ flex: flex,
|
||||
child: Material(
|
||||
type: MaterialType.transparency,
|
||||
child: ListView(children: wrappedChildren),
|
||||
@@ -410,7 +414,7 @@ class _NavigationDestinationBuilder extends StatelessWidget {
|
||||
child: _NavigationDestinationSemantics(
|
||||
child: SizedBox(
|
||||
height: navigationDrawerTheme.tileHeight ?? defaults.tileHeight,
|
||||
|
||||
Reference in New Issue
Block a user