UX update to add thene class and apply the theme to entire app
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:patient_manager/main.dart';
|
||||
import 'package:patient_manager/theme/mihTheme.dart';
|
||||
|
||||
class HomeAppDrawer extends StatefulWidget {
|
||||
final String userEmail;
|
||||
@@ -14,21 +16,31 @@ class _HomeAppDrawerState extends State<HomeAppDrawer> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Drawer(
|
||||
backgroundColor: MyTheme().primaryColor(),
|
||||
child: ListView(
|
||||
padding: EdgeInsets.zero,
|
||||
children: [
|
||||
DrawerHeader(
|
||||
decoration: const BoxDecoration(
|
||||
color: Colors.blueAccent,
|
||||
decoration: BoxDecoration(
|
||||
color: MyTheme().secondaryColor(),
|
||||
),
|
||||
child: Text(
|
||||
widget.userEmail,
|
||||
style: TextStyle(color: MyTheme().primaryColor()),
|
||||
),
|
||||
child: Text(widget.userEmail),
|
||||
),
|
||||
ListTile(
|
||||
title: const Row(
|
||||
title: Row(
|
||||
children: [
|
||||
Icon(Icons.logout),
|
||||
Icon(
|
||||
Icons.logout,
|
||||
color: MyTheme().secondaryColor(),
|
||||
),
|
||||
SizedBox(width: 25.0),
|
||||
Text("Sign Out"),
|
||||
Text(
|
||||
"Sign Out",
|
||||
style: TextStyle(color: MyTheme().secondaryColor()),
|
||||
),
|
||||
],
|
||||
),
|
||||
onTap: () {
|
||||
|
||||
Reference in New Issue
Block a user