use navigation rail instead of listview

This commit is contained in:
Simon Ding
2024-07-04 19:37:28 +08:00
parent be96f7f000
commit e19a0315d5
4 changed files with 52 additions and 36 deletions

View File

@@ -88,12 +88,13 @@ class _MyHomePageState extends State<MyHomePage> {
// the App.build method, and use it to set our appbar title.
title: Text(widget.title),
),
body: const Center(
body: Center(
// Center is a layout widget. It takes a single child and positions it
// in the middle of the parent.
child: Row(
children: <Widget>[
NavDrawer(),
const VerticalDivider(thickness: 1, width: 1),
SearchPage(),
],
)),