UserAccountsDrawerHeader constructor

const UserAccountsDrawerHeader({
  1. Key? key,
  2. Decoration? decoration,
  3. EdgeInsetsGeometry? margin = const EdgeInsets.only(bottom: 8.0),
  4. Widget? currentAccountPicture,
  5. List<Widget>? otherAccountsPictures,
  6. Size currentAccountPictureSize = const Size.square(72.0),
  7. Size otherAccountsPicturesSize = const Size.square(40.0),
  8. required Widget? accountName,
  9. required Widget? accountEmail,
  10. VoidCallback? onDetailsPressed,
  11. Color arrowColor = Colors.white,
})

Creates a Material Design drawer header.

Requires one of its ancestors to be a Material widget.

Implementation

const UserAccountsDrawerHeader({
  super.key,
  this.decoration,
  this.margin = const EdgeInsets.only(bottom: 8.0),
  this.currentAccountPicture,
  this.otherAccountsPictures,
  this.currentAccountPictureSize = const Size.square(72.0),
  this.otherAccountsPicturesSize = const Size.square(40.0),
  required this.accountName,
  required this.accountEmail,
  this.onDetailsPressed,
  this.arrowColor = Colors.white,
});