This commit is contained in:
@ -10,6 +10,12 @@ class EndDrawer extends StatelessWidget {
|
||||
|
||||
const EndDrawer({super.key, required this.ref});
|
||||
|
||||
void _showMsg(String message, BuildContext context) {
|
||||
ScaffoldMessenger.of(context)
|
||||
..removeCurrentSnackBar()
|
||||
..showSnackBar(SnackBar(content: Text(message)));
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Drawer(
|
||||
@ -105,14 +111,18 @@ class EndDrawer extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
ListTile(
|
||||
title: const Text('Einstellungen'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
_showMsg('wip', context);
|
||||
},
|
||||
),
|
||||
ListTile(
|
||||
title: Text('v${AppVersion.version}'),
|
||||
onTap: () {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
const SnackBar(
|
||||
content: Text('jooong lass das, hier ist nichts'),
|
||||
),
|
||||
);
|
||||
Navigator.pop(context);
|
||||
_showMsg('jooong lass das, hier ist nichts', context);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
Reference in New Issue
Block a user