Commit 8845f113 authored by Budi Prasetyo's avatar Budi Prasetyo

dashboard

parent 7289d3c7
...@@ -25,7 +25,29 @@ class _DashboardState extends State<Dashboard> { ...@@ -25,7 +25,29 @@ class _DashboardState extends State<Dashboard> {
), ),
), ),
actions: [ actions: [
TextButton.icon(onPressed: (){}, icon: Icon(Icons.remove_red_eye ), label: Text('Site Online'),) TextButton.icon(
onPressed: () {
Navigator.pushNamed(context, '/');
},
icon: const Icon(
Icons.remove_red_eye,
),
label: const Text(
'Site Online',
),
),
TextButton.icon(
onPressed: () {
Navigator.pushNamed(context, '/');
},
icon: const Icon(
Icons.output,
),
label: const Text(
'Logout',
style: TextStyle(),
),
),
], ],
), ),
...@@ -42,13 +64,13 @@ class _DashboardState extends State<Dashboard> { ...@@ -42,13 +64,13 @@ class _DashboardState extends State<Dashboard> {
openSideMenuWidth: 220, openSideMenuWidth: 220,
displayMode: SideMenuDisplayMode.auto, displayMode: SideMenuDisplayMode.auto,
hoverColor: Colors.blue[100], hoverColor: Colors.blue[100],
selectedColor: Colors.white, selectedColor: Colors.blueAccent[200],
selectedTitleTextStyle: const TextStyle(color: Colors.blueAccent), selectedTitleTextStyle: const TextStyle(color: Colors.white),
selectedIconColor: Colors.blueAccent[700], selectedIconColor: Colors.white,
// decoration: BoxDecoration( // decoration: BoxDecoration(
// borderRadius: BorderRadius.all(Radius.circular(10)), // borderRadius: BorderRadius.all(Radius.circular(10)),
// ), // ),
backgroundColor: Colors.blue, backgroundColor: Colors.blue[100],
), ),
title: Column( title: Column(
children: [ children: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment