mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 11:09:28 +00:00
46 lines
1.1 KiB
Dart
46 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:go_router/go_router.dart';
|
|
import 'package:whispering_pages/pages/server_manager.dart';
|
|
import 'package:whispering_pages/router/router.dart';
|
|
|
|
|
|
class MyDrawer extends StatelessWidget {
|
|
const MyDrawer({
|
|
super.key,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Drawer(
|
|
child: ListView(
|
|
children: [
|
|
const DrawerHeader(
|
|
child: Text(
|
|
'Whispering Pages',
|
|
style: TextStyle(
|
|
fontStyle: FontStyle.italic,
|
|
fontSize: 30,
|
|
),
|
|
),
|
|
),
|
|
ListTile(
|
|
title: const Text('server Settings'),
|
|
onTap: () {
|
|
Navigator.of(context).push(
|
|
MaterialPageRoute(
|
|
builder: (context) => const ServerManagerPage(),
|
|
),
|
|
);
|
|
},
|
|
),
|
|
ListTile(
|
|
title: const Text('App Settings'),
|
|
onTap: () {
|
|
context.goNamed(Routes.settings.name);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|