Closes #60 Hide app drawer on item tap
This commit is contained in:
parent
60793dbf89
commit
0e11c1a146
@ -531,20 +531,23 @@ class _MainPageState extends State<MainPage> with WidgetsBindingObserver {
|
|||||||
leading: Icon(Icons.settings),
|
leading: Icon(Icons.settings),
|
||||||
title: Text("Connection settings"),
|
title: Text("Connection settings"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, '/connection-settings');
|
Navigator.of(context).pop();
|
||||||
|
Navigator.of(context).pushNamed('/connection-settings');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
new ListTile(
|
new ListTile(
|
||||||
leading: Icon(Icons.insert_drive_file),
|
leading: Icon(Icons.insert_drive_file),
|
||||||
title: Text("Log"),
|
title: Text("Log"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Navigator.pushNamed(context, '/log-view');
|
Navigator.of(context).pop();
|
||||||
|
Navigator.of(context).pushNamed('/log-view');
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
new ListTile(
|
new ListTile(
|
||||||
leading: Icon(MaterialDesignIcons.createIconDataFromIconName("mdi:github-circle")),
|
leading: Icon(MaterialDesignIcons.createIconDataFromIconName("mdi:github-circle")),
|
||||||
title: Text("Reprot issue"),
|
title: Text("Reprot issue"),
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
Navigator.of(context).pop();
|
||||||
haUtils.launchURL("https://github.com/estevez-dev/ha_client_pub/issues/new");
|
haUtils.launchURL("https://github.com/estevez-dev/ha_client_pub/issues/new");
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user