import 'package:flutter/cupertino.dart' ;
import 'package:flutter/material.dart' ;
void main() {
runApp( const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Advanced Drawer' ,
theme: ThemeData(
primarySwatch: Colors.green,
),
home: AdvancedDrawer(),
);
}
}
class AdvancedDrawer extends StatefulWidget {
const AdvancedDrawer({super.key});
@override
State<AdvancedDrawer> createState() => _AdvancedDrawerState();
}
class _AdvancedDrawerState extends State<AdvancedDrawer> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text( "Geeks For Geeks" ),
),
body: Center(child: Text( "Swipe Left" ),),
drawer: Drawer(
backgroundColor: Colors.white,
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
height: 100,
color: Colors.green,
child: Row(
children: [
SizedBox(width: 20),
CircleAvatar(
minRadius: 35,
maxRadius: 35,
backgroundColor: Colors.grey,
),
SizedBox(width: 10),
Text(
"Priyanshu" ,
style: TextStyle(color: Colors.white, fontSize: 15),
),
],
),
),
SizedBox(
height: 20,
),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.home),
SizedBox(
width: 10,
),
Text(
"Home" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black),
)
],
),
),
),
SizedBox(
height: 10,
),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.search),
SizedBox(
width: 10,
),
Text(
"Explore Menus" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black),
)
],
),
),
),
ExpansionTile(
title: Row(
children: [
Icon(CupertinoIcons.person_3_fill, color: Colors.black),
SizedBox(
width: 10,
),
Text(
"Vendors" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black),
)
],
),
childrenPadding: EdgeInsets.only(left: 25),
children: [
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(
CupertinoIcons.waveform_circle_fill,
color: Colors.black87,
),
SizedBox(
width: 10,
),
Text(
"Venue" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87),
)
],
),
),
),
SizedBox(height: 5),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.camera_alt_outlined),
SizedBox(
width: 10,
),
Text(
"Photographer" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87),
)
],
),
),
),
SizedBox(height: 5),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.video_call),
SizedBox(
width: 10,
),
Text(
"Cinematography" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87),
)
],
),
),
),
SizedBox(height: 5),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.brush),
SizedBox(
width: 10,
),
Text(
"Makeup Artists" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black87),
)
],
),
),
),
],
),
Padding(
padding: const EdgeInsets.only(left: 15),
child: GestureDetector(
onTap: (() {
}),
child: Row(
children: [
Icon(Icons.wallet_giftcard_rounded),
SizedBox(
width: 10,
),
Text(
"Package" ,
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w500,
color: Colors.black),
)
],
),
),
),
],
),
),
),
);
}
}
|