2020-08-11 14:01:26 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:neonime_app/pages/about.dart';
|
2020-08-17 20:33:04 +02:00
|
|
|
import 'package:neonime_app/pages/batch.dart';
|
2020-08-11 14:01:26 +02:00
|
|
|
|
|
|
|
class MainDrawer extends StatelessWidget {
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Builder(
|
|
|
|
builder: (context) => Drawer(
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
padding: EdgeInsets.all(90),
|
|
|
|
// color: Colors.amberAccent,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
2020-09-07 18:09:30 +02:00
|
|
|
image: AssetImage('lib/assets/drawer-top.webp'),
|
2020-08-11 14:01:26 +02:00
|
|
|
fit: BoxFit.fill),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Flexible(
|
|
|
|
flex: 6,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.library_books),
|
|
|
|
title: Text('Batch'),
|
2020-08-17 20:33:04 +02:00
|
|
|
onTap: () {
|
|
|
|
Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => Batch(),
|
|
|
|
));
|
|
|
|
},
|
2020-08-11 14:01:26 +02:00
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.schedule),
|
2020-09-07 18:02:19 +02:00
|
|
|
title: Text('Schedule'),
|
|
|
|
onTap: () {},
|
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.settings),
|
|
|
|
title: Text('Settings'),
|
2020-08-11 14:01:26 +02:00
|
|
|
onTap: () {},
|
|
|
|
),
|
|
|
|
ListTile(
|
|
|
|
leading: Icon(Icons.info),
|
|
|
|
title: Text('About'),
|
|
|
|
onTap: () {
|
2020-08-17 20:33:04 +02:00
|
|
|
Navigator.push(context, MaterialPageRoute(
|
|
|
|
builder: (context) => About(),
|
|
|
|
));
|
2020-08-11 14:01:26 +02:00
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Flexible(
|
|
|
|
flex: 6,
|
|
|
|
child: Container(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
image: DecorationImage(
|
2020-09-07 18:09:30 +02:00
|
|
|
image: AssetImage('lib/assets/drawer-bottom.webp'))),
|
2020-08-11 14:01:26 +02:00
|
|
|
))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|