You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.7 KiB
Dart
96 lines
2.7 KiB
Dart
import 'package:car_customer_app/theme/colors.dart';
|
|
import 'package:car_customer_app/utils/navigator.dart';
|
|
import 'package:car_customer_app/widgets/app_bar.dart';
|
|
import 'package:car_customer_app/widgets/show_fill_button.dart';
|
|
import 'package:car_customer_app/widgets/txt.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class DashboardPage extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: appBar(
|
|
title: "Logo/Brand",
|
|
),
|
|
drawer: showDrawer(context),
|
|
body: Container(
|
|
child: Center(
|
|
child: Txt(
|
|
"Dashboard/Main Page",
|
|
txtType: TxtType.heading3,
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
Widget showDrawer(BuildContext context) {
|
|
return Drawer(
|
|
child: Container(
|
|
child: Column(
|
|
children: [
|
|
Container(
|
|
width: double.infinity,
|
|
height: 200,
|
|
color: accentColor.withOpacity(0.3),
|
|
child: Icon(
|
|
Icons.person,
|
|
size: 80,
|
|
color: accentColor.withOpacity(0.3),
|
|
),
|
|
),
|
|
Container(
|
|
width: double.infinity,
|
|
color: accentColor.withOpacity(0.1),
|
|
padding: EdgeInsets.all(20),
|
|
child: Row(
|
|
children: [
|
|
Expanded(
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
children: [
|
|
Txt(
|
|
"User Name",
|
|
txtType: TxtType.heading3,
|
|
),
|
|
Txt(
|
|
"User role or title",
|
|
),
|
|
],
|
|
),
|
|
),
|
|
ShowFillButton(
|
|
title: "EDIT",
|
|
onPressed: () {},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
ListTile(
|
|
leading: Icon(Icons.notifications),
|
|
title: Txt("Notifications"),
|
|
),
|
|
ListTile(
|
|
leading: Icon(Icons.settings),
|
|
title: Txt("General"),
|
|
),
|
|
ListTile(
|
|
leading: Icon(Icons.person),
|
|
title: Txt("Account"),
|
|
),
|
|
ListTile(
|
|
leading: Icon(Icons.logout),
|
|
title: Txt("Sign Out"),
|
|
onTap: () {
|
|
pop(context);
|
|
pop(context);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|