change theme switcher to logo
This commit is contained in:
parent
8c0d489ec1
commit
130b8a9801
1 changed files with 28 additions and 11 deletions
|
|
@ -203,12 +203,12 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
top: 1,
|
top: 5,
|
||||||
right: 1,
|
right: 5,
|
||||||
width: 50,
|
width: 40,
|
||||||
height: 50,
|
height: 40,
|
||||||
child: IconButton(
|
child: InkWell(
|
||||||
onPressed: () {
|
onTap: () {
|
||||||
setState(() {
|
setState(() {
|
||||||
if (MzanziInnovationHub.of(context)?.theme.mode == "Dark") {
|
if (MzanziInnovationHub.of(context)?.theme.mode == "Dark") {
|
||||||
//darkm = !darkm;
|
//darkm = !darkm;
|
||||||
|
|
@ -222,12 +222,29 @@ class _MIHAppDrawerState extends State<MIHAppDrawer> {
|
||||||
Navigator.of(context).popAndPushNamed('/');
|
Navigator.of(context).popAndPushNamed('/');
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
icon: Icon(
|
child: Image(image: logo),
|
||||||
Icons.light_mode,
|
|
||||||
color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
|
||||||
size: 35,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
// IconButton(
|
||||||
|
// onPressed: () {
|
||||||
|
// setState(() {
|
||||||
|
// if (MzanziInnovationHub.of(context)?.theme.mode == "Dark") {
|
||||||
|
// //darkm = !darkm;
|
||||||
|
// MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.light);
|
||||||
|
// //print("Dark Mode: $darkm");
|
||||||
|
// } else {
|
||||||
|
// //darkm = !darkm;
|
||||||
|
// MzanziInnovationHub.of(context)!.changeTheme(ThemeMode.dark);
|
||||||
|
// //print("Dark Mode: $darkm");
|
||||||
|
// }
|
||||||
|
// Navigator.of(context).popAndPushNamed('/');
|
||||||
|
// });
|
||||||
|
// },
|
||||||
|
// icon: Icon(
|
||||||
|
// Icons.light_mode,
|
||||||
|
// color: MzanziInnovationHub.of(context)!.theme.primaryColor(),
|
||||||
|
// size: 35,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
),
|
),
|
||||||
]),
|
]),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue