drawer method
Implementation
Widget drawer() {
return Drawer(
child: ListView(
children: [
DrawerHeader(
decoration: const BoxDecoration(
color: kBlue4Color,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Expanded(
child: CircleAvatar(
backgroundColor: kBlue5Color,
child: Text(
'U1',
style: TextStyle(
fontSize: 24,
fontWeight: semiBold,
color: kWhiteColor),
),
radius: 34,
),
),
Row(
children: [
const Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text('User 1',
style:
TextStyle(color: kWhiteColor, fontSize: 16)),
SizedBox(height: 5),
Text('+62 802 0220055',
style: TextStyle(color: kLightGreyColor)),
],
),
),
Column(
children: [
IconButton(
onPressed: () {},
icon: const Icon(
Icons.keyboard_arrow_down_rounded,
color: kWhiteColor,
size: 34,
),
),
],
),
],
),
],
),
),
ListTile(
leading: const Icon(Icons.group_outlined),
title: const Text('New Group'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.person_outline_rounded),
title: const Text('Contacts'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.call_outlined),
title: const Text('Calls'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.accessibility_new_sharp),
title: const Text('People Nearby'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.bookmark_border_rounded),
title: const Text('Saved Messages'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.settings_outlined),
title: const Text('Settings'),
trailing: const CircleAvatar(
backgroundColor: kBlue4Color,
child: Text('!', style: TextStyle(color: kWhiteColor)),
radius: 12,
),
onTap: () {},
),
const Divider(thickness: 1),
ListTile(
leading: const Icon(Icons.group),
title: const Text('Invite Friends'),
onTap: () {},
),
ListTile(
leading: const Icon(Icons.group),
title: const Text('Telegram Features'),
onTap: () {},
),
],
),
);
}