Skip to content
Snippets Groups Projects
Commit aa3f8578 authored by Florian Schindler's avatar Florian Schindler
Browse files

changed page order

parent b48a7364
Branches
No related tags found
No related merge requests found
import 'package:flutter/material.dart';
import 'package:trackeroo/frontend/views/category_view.dart';
import 'package:trackeroo/frontend/views/home_view.dart';
import 'package:trackeroo/frontend/views/details_view.dart';
import 'package:trackeroo/frontend/views/category_view.dart';
class AppScaffold extends StatefulWidget {
const AppScaffold({Key? key}) : super(key: key);
......@@ -14,8 +15,8 @@ class _AppScaffoldState extends State<AppScaffold> {
final screens = [
const HomeView(),
const DetailsView(),
const CategoryView(),
const HomeView(),
];
@override
......@@ -58,22 +59,33 @@ class _AppScaffoldState extends State<AppScaffold> {
destinations: const [
NavigationDestination(
icon: Icon(Icons.home_outlined),
selectedIcon: Icon(Icons.home),
selectedIcon: Icon(Icons.home_rounded),
label: 'Home'
),
NavigationDestination(
icon: Icon(Icons.category_outlined),
selectedIcon: Icon(Icons.category),
label: 'Categories'
icon: Icon(Icons.bar_chart_rounded),
selectedIcon: Icon(Icons.bar_chart_rounded),
label: 'Details'
),
NavigationDestination(
icon: Icon(Icons.person_outline),
selectedIcon: Icon(Icons.person),
label: 'Profile'
icon: Icon(Icons.category_outlined),
selectedIcon: Icon(Icons.category_rounded),
label: 'Category'
)
],
),
),
floatingActionButton: FloatingActionButton(
onPressed: () {
if(index == 0 || index == 1) {
// add tranaction
}
if(index == 2) {
// add category
}
},
child: const Icon(Icons.add_rounded),
),
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment