This commit is contained in:
Simon Ding
2024-07-16 22:50:53 +08:00
parent fd8a74ce96
commit 42dc3d06eb

View File

@@ -20,12 +20,7 @@ class _NavDrawerState extends State<NavDrawer> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Row( return NavigationRail(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Flexible(
child: NavigationRail(
selectedIndex: _counter, selectedIndex: _counter,
onDestinationSelected: (value) { onDestinationSelected: (value) {
setState(() { setState(() {
@@ -67,9 +62,6 @@ class _NavDrawerState extends State<NavDrawer> {
label: Text('设置'), label: Text('设置'),
), ),
], ],
//groupAlignment: -1, );
minWidth: 56,
))
]);
} }
} }