drawerButtonW method
Widget
drawerButtonW( - dynamic context,
- dynamic expandRatio,
- dynamic barHeight,
- dynamic overlapsContent,
)
Implementation
Widget drawerButtonW(context, expandRatio, barHeight, overlapsContent) =>
//Open drawer
Container(
height: barHeight,
alignment: Alignment.centerLeft,
child: ClipRRect(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(25),
bottomLeft: Radius.circular(25),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
child: Container(
alignment: Alignment.centerLeft,
color: Theme.of(context).colorScheme.surface.withOpacity(0.5),
height: barHeight - 20,
child: IconButton(
icon: Icon(Icons.menu),
onPressed: () {
Scaffold.of(context).openEndDrawer();
},
),
),
),
),
);