mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 19:19:28 +00:00
50 lines
1.2 KiB
Dart
50 lines
1.2 KiB
Dart
|
|
import 'package:flutter/material.dart';
|
||
|
|
import 'package:whispering_pages/pages/app_settings.dart';
|
||
|
|
import 'package:whispering_pages/pages/server_manager.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: () {
|
||
|
|
Navigator.of(context).push(
|
||
|
|
MaterialPageRoute(
|
||
|
|
builder: (context) => const AppSettingsPage(),
|
||
|
|
),
|
||
|
|
);
|
||
|
|
},
|
||
|
|
),
|
||
|
|
],
|
||
|
|
),
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|