build method
- BuildContext context
override
Returns a Padding widget with a Material widget as child.
The Material widget is configured with a transparent color and a InkWell widget as child.
The InkWell widget is configured with a rounded border with the
SenseiConst.outBorderRadius
radius, and an onTap
callback that calls
openDrawer with the given context
.
The InkWell widget has a _ActionDrawerContainer
widget as child,
which is a Container widget with a rounded border and a transparent
color.
The _ActionDrawerContainer
widget has a _ActionDrawerIcon
widget as
child, which is a Icon widget with the Icons.more_vert_rounded icon.
Implementation
@override
/// Returns a [Padding] widget with a [Material] widget as child.
///
/// The [Material] widget is configured with a transparent color and a
/// [InkWell] widget as child.
///
/// The [InkWell] widget is configured with a rounded border with the
/// [SenseiConst.outBorderRadius] radius, and an [onTap] callback that calls
/// [openDrawer] with the given [context].
///
/// The [InkWell] widget has a [_ActionDrawerContainer] widget as child,
/// which is a [Container] widget with a rounded border and a transparent
/// color.
///
/// The [_ActionDrawerContainer] widget has a [_ActionDrawerIcon] widget as
/// child, which is a [Icon] widget with the [Icons.more_vert_rounded] icon.
Widget build(final BuildContext context) => Padding(
padding: const EdgeInsets.all(AppConstants.padding),
child: Material(
color: Colors.transparent,
child: InkWell(
borderRadius: BorderRadius.circular(AppConstants.outBorderRadius),
onTap: () => openDrawer(context),
child: _ActionDrawerContainer(child: _ActionDrawerIcon()),
),
),
);