build method
- BuildContext context
override
Returns a DrawerHeader widget with a Decoration set to a BoxDecoration with a DecorationImage as the image property. The DecorationImage is configured with the 'assets/images/WaterMelonCover.jpg' image and a BoxFit of BoxFit.cover.
The child of the DrawerHeader widget is null.
Implementation
@override
/// Returns a [DrawerHeader] widget with a [Decoration] set to a [BoxDecoration]
/// with a [DecorationImage] as the [image] property. The [DecorationImage] is
/// configured with the 'assets/images/WaterMelonCover.jpg' image and a
/// [BoxFit] of [BoxFit.cover].
///
/// The child of the [DrawerHeader] widget is null.
Widget build(final BuildContext context) => const DrawerHeader(
margin: EdgeInsets.all(0),
padding: EdgeInsetsGeometry.all(0),
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(SenseiConst.drawerImage),
fit: BoxFit.cover,
),
),
child: null,
);