general minor modifications

This commit is contained in:
2025-08-24 23:34:14 +01:00
parent 5c157c59b8
commit 11be91593d
5 changed files with 29 additions and 11 deletions

View File

@@ -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.
);
}
}