drawerStyleBuilder property
Build custom animated style to override DrawerStyle
drawerStyleBuilder: (context, animationValue, slideWidth, menuScreen, mainScreen) {
double slide = slideWidth * animationValue;
return Stack(
children: [
menuScreen,
Transform(
transform: Matrix4.identity()..translate(slide),
alignment: Alignment.center,
child: mainScreen,
)]);
},
Implementation
final DrawerStyleBuilder? drawerStyleBuilder;