general minor modifications
This commit is contained in:
@@ -160,6 +160,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
"/legs",
|
||||
"/traction",
|
||||
"/trips",
|
||||
"/add",
|
||||
];
|
||||
|
||||
int _getIndexFromLocation(String location) {
|
||||
@@ -263,14 +264,10 @@ class _MyHomePageState extends State<MyHomePage> {
|
||||
NavigationDestination(icon: Icon(Icons.list), label: "Entries"),
|
||||
NavigationDestination(icon: Icon(Icons.train), label: "Traction"),
|
||||
NavigationDestination(icon: Icon(Icons.book), label: "Trips"),
|
||||
NavigationDestination(icon: Icon(Icons.add), label: "Add"),
|
||||
],
|
||||
),
|
||||
body: currentPage,
|
||||
floatingActionButton: FloatingActionButton(
|
||||
onPressed: () => {context.push("/add")},
|
||||
tooltip: 'New Entry',
|
||||
child: const Icon(Icons.add),
|
||||
), // This trailing comma makes auto-formatting nicer for build methods.
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user