|
|
|
|
@ -57,17 +57,14 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
return Scaffold(
|
|
|
|
|
appBar: appBar(context, title: "Logo/Brand", isRemoveBackButton: true),
|
|
|
|
|
drawer: showDrawer(context),
|
|
|
|
|
body: Container(
|
|
|
|
|
child: Center(
|
|
|
|
|
body: Center(
|
|
|
|
|
child: LocaleKeys.dashboard.tr().toText24(),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Widget showDrawer(BuildContext context) {
|
|
|
|
|
return Drawer(
|
|
|
|
|
child: Container(
|
|
|
|
|
child: Column(
|
|
|
|
|
children: [
|
|
|
|
|
Stack(children: [
|
|
|
|
|
@ -95,7 +92,7 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
borderRadius: BorderRadius.circular(30),
|
|
|
|
|
),
|
|
|
|
|
child: Icon(
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.edit,
|
|
|
|
|
color: MyColors.darkPrimaryColor,
|
|
|
|
|
).onPress(() {
|
|
|
|
|
@ -111,7 +108,7 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
color: Colors.grey[200],
|
|
|
|
|
borderRadius: BorderRadius.circular(30),
|
|
|
|
|
),
|
|
|
|
|
child: Icon(
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.delete,
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
).onPress(() async {
|
|
|
|
|
@ -135,7 +132,7 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
color: MyColors.darkPrimaryColor.withOpacity(0.1),
|
|
|
|
|
padding: EdgeInsets.all(20),
|
|
|
|
|
padding: const EdgeInsets.all(20),
|
|
|
|
|
child: Row(
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(
|
|
|
|
|
@ -161,21 +158,21 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
leading: Icon(
|
|
|
|
|
leading: const Icon(
|
|
|
|
|
Icons.notifications,
|
|
|
|
|
color: MyColors.darkPrimaryColor,
|
|
|
|
|
),
|
|
|
|
|
title: LocaleKeys.notifications.tr().toText12(),
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
leading: Icon(
|
|
|
|
|
leading: const Icon(
|
|
|
|
|
Icons.settings,
|
|
|
|
|
color: MyColors.darkPrimaryColor,
|
|
|
|
|
),
|
|
|
|
|
title: LocaleKeys.general.tr().toText12(),
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
leading: Icon(
|
|
|
|
|
leading: const Icon(
|
|
|
|
|
Icons.person,
|
|
|
|
|
color: MyColors.darkPrimaryColor,
|
|
|
|
|
),
|
|
|
|
|
@ -197,7 +194,7 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
},
|
|
|
|
|
),
|
|
|
|
|
ListTile(
|
|
|
|
|
leading: Icon(
|
|
|
|
|
leading: const Icon(
|
|
|
|
|
Icons.logout,
|
|
|
|
|
color: MyColors.darkPrimaryColor,
|
|
|
|
|
),
|
|
|
|
|
@ -209,17 +206,19 @@ class _DashboardPageState extends State<DashboardPage> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void _openImagePicker() {
|
|
|
|
|
showDialog<ImageSource>(
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (context) => AlertDialog(content: Text("Choose image source"), actions: [
|
|
|
|
|
TextButton(child: Text("Camera"), onPressed: () => cameraImage()),
|
|
|
|
|
TextButton(child: Text("Gallery"), onPressed: () => gallaryImage()),
|
|
|
|
|
]),
|
|
|
|
|
builder: (context) => AlertDialog(
|
|
|
|
|
content: const Text("Choose image source"),
|
|
|
|
|
actions: [
|
|
|
|
|
TextButton(child: const Text("Camera"), onPressed: () => cameraImage()),
|
|
|
|
|
TextButton(child: const Text("Gallery"), onPressed: () => gallaryImage()),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
// .then((ImageSource source) async {
|
|
|
|
|
// if (source != null) {
|
|
|
|
|
// final pickedFile = await ImagePicker().getImage(source: source);
|
|
|
|
|
|