build method
- BuildContext context
override
A widget that displays a header in a bottom sheet.
The header is a horizontal line with a title below it.
The color of the line is the primary color with a dim (50%) opacity.
The title is displayed in the Theme.of(context).textTheme.titleMedium style.
There is a 6 logical pixel gap between the title and the line.
The header is centered horizontally.
Implementation
@override
///
/// A widget that displays a header in a bottom sheet.
///
/// The header is a horizontal line with a title below it.
///
/// The color of the line is the primary color with a dim (50%) opacity.
///
/// The title is displayed in the [Theme.of(context).textTheme.titleMedium]
/// style.
///
/// There is a 6 logical pixel gap between the title and the line.
///
/// The header is centered horizontally.
///
Widget build(final BuildContext context) => Center(
child: Column(
children: [
Container(
margin: EdgeInsets.symmetric(vertical: SenseiConst.margin.h),
width: 80.w,
height: 5.h,
decoration: BoxDecoration(
color: Theme.of(context).colorScheme.primaryFixedDim,
borderRadius: BorderRadius.circular(4),
),
),
Text(titile, style: Theme.of(context).textTheme.titleMedium),
SizedBox(height: 6.h),
],
),
);