feat: improve datepicker color

This commit is contained in:
Lucas.Xu
2023-12-05 14:36:57 +08:00
parent 6985b1d370
commit af3999587d
2 changed files with 13 additions and 9 deletions

View File

@ -77,15 +77,17 @@ class _MobileDateCellEditScreenState extends State<MobileDateCellEditScreen> {
builder: (_, controller) => Material(
child: ColoredBox(
color: Theme.of(context).colorScheme.surface,
child: SingleChildScrollView(
controller: controller,
child: Column(
children: [
const DragHandler(),
_buildHeader(),
_buildBody(),
],
),
child: Column(
children: [
const DragHandler(),
_buildHeader(),
Expanded(
child: SingleChildScrollView(
controller: controller,
child: _buildBody(),
),
),
],
),
),
),

View File

@ -165,6 +165,8 @@ class _DateCellState extends GridCellState<GridDateCell> {
showMobileBottomSheet(
context,
padding: EdgeInsets.zero,
backgroundColor:
Theme.of(context).colorScheme.secondaryContainer,
builder: (context) {
return MobileDateCellEditScreen(
controller: widget.cellControllerBuilder.build()