Sidebar menu and settings page skeleton

This commit is contained in:
Konstantin Kollar
2022-08-31 15:27:43 +02:00
parent 7c4320f4b6
commit cdfdad3433
3 changed files with 48 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:wetter/screens/second_route.dart';
class NavBar extends StatelessWidget {
const NavBar({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Drawer(
child: ListView(
children: [
const DrawerHeader(child: Text("Weather")),
ListTile(
leading: const Icon(Icons.sunny),
title: const Text("Forecast"),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.settings),
title: const Text("Settings"),
onTap: () {
Navigator.push(context,
MaterialPageRoute(builder: (context) => const Settings()));
},
),
],
),
);
}
}