76 lines
2.7 KiB
Dart
76 lines
2.7 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:unit2/theme-data.dart/colors.dart';
|
|
import 'package:fluttericon/web_symbols_icons.dart';
|
|
import 'package:fluttericon/typicons_icons.dart';
|
|
import 'package:fluttericon/font_awesome5_icons.dart';
|
|
import 'menu.dart';
|
|
import '../../../../utils/global.dart';
|
|
|
|
class MenuScreen extends StatefulWidget {
|
|
const MenuScreen({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<MenuScreen> createState() => _MenuScreenState();
|
|
}
|
|
|
|
class _MenuScreenState extends State<MenuScreen> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SafeArea(
|
|
child: Drawer(
|
|
child: SingleChildScrollView(
|
|
child: SizedBox(
|
|
height: blockSizeVertical * 96,
|
|
child: Column(
|
|
// ignore: prefer_const_literals_to_create_immutables
|
|
children: <Widget>[
|
|
const UserAccountsDrawerHeader(
|
|
decoration: BoxDecoration(
|
|
color: primary,
|
|
image: DecorationImage(
|
|
image: AssetImage('assets/pngs/bg.png'),
|
|
fit: BoxFit.cover)),
|
|
accountName: Text("ACUIN" ", " "RODOLFO" " " "BERNALIS"),
|
|
accountEmail: null,
|
|
currentAccountPicture: CircleAvatar(
|
|
radius: 40,
|
|
backgroundColor: fifth,
|
|
child: CircleAvatar(
|
|
radius: 33,
|
|
backgroundColor: third,
|
|
child: //Icon(Icons.person, size: 40, color: fifth),
|
|
Text(
|
|
"A",
|
|
style: TextStyle(fontSize: 45.0, color: fifth),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
getTile(Typicons.user_outline, "Profile", 'profile', context),
|
|
const Divider(),
|
|
getTile(Typicons.home_outline, "Address", '/SelfAddressScreen',
|
|
context),
|
|
const Divider(),
|
|
getTile(Typicons.contacts, "Contact Number",
|
|
'/SelfContactScreen', context),
|
|
const Divider(),
|
|
getTile(Typicons.mail, "Email Address", '/SelfEmailAddScreen',
|
|
context),
|
|
const Divider(),
|
|
getTile(FontAwesome5.life_ring, "Request SOS", 'request-sos',
|
|
context),
|
|
const Divider(),
|
|
Expanded(
|
|
child: Align(
|
|
alignment: FractionalOffset.bottomLeft,
|
|
child: getTile(WebSymbols.logout, "Logout", 'login', context),
|
|
)),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|