createDrawer method

Drawer createDrawer(
  1. BuildContext context,
  2. List<Widget> children
)

Implementation

Drawer createDrawer(BuildContext context, List<Widget> children) {
  return Drawer(
    child: ListView(
      primary:
          false, //https://api.flutter.dev/flutter/widgets/ScrollView/physics.html
      padding: EdgeInsets.zero,
      children: children,
    ),
  );
}