ListDrawer function

Drawer ListDrawer(
  1. List<Widget> items, {
  2. double? width = 200,
  3. List<Widget>? tailItems,
})

Implementation

Drawer ListDrawer(List<Widget> items, {double? width = 200, List<Widget>? tailItems}) {
  return Drawer(
    width: width,
    child: ColumnMax([ListView(shrinkWrap: true, children: items), Spacer(), ...(tailItems ?? [])]),
  );
}