|
@@ -48,8 +48,8 @@ class DateCellEditor with FlowyOverlayDelegate {
|
|
|
|
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
widget: OverlayContainer(
|
|
widget: OverlayContainer(
|
|
- child: calendar,
|
|
|
|
constraints: BoxConstraints.loose(const Size(320, 500)),
|
|
constraints: BoxConstraints.loose(const Size(320, 500)),
|
|
|
|
+ child: calendar,
|
|
),
|
|
),
|
|
identifier: DateCellEditor.identifier(),
|
|
identifier: DateCellEditor.identifier(),
|
|
anchorContext: context,
|
|
anchorContext: context,
|
|
@@ -304,9 +304,7 @@ class _DateTypeOptionButton extends StatelessWidget {
|
|
@override
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
final theme = context.watch<AppTheme>();
|
|
final theme = context.watch<AppTheme>();
|
|
- final title = LocaleKeys.grid_field_dateFormat.tr() +
|
|
|
|
- " &" +
|
|
|
|
- LocaleKeys.grid_field_timeFormat.tr();
|
|
|
|
|
|
+ final title = "${LocaleKeys.grid_field_dateFormat.tr()} &${LocaleKeys.grid_field_timeFormat.tr()}";
|
|
return BlocSelector<DateCalBloc, DateCalState, DateTypeOptionPB>(
|
|
return BlocSelector<DateCalBloc, DateCalState, DateTypeOptionPB>(
|
|
selector: (state) => state.dateTypeOptionPB,
|
|
selector: (state) => state.dateTypeOptionPB,
|
|
builder: (context, dateTypeOptionPB) {
|
|
builder: (context, dateTypeOptionPB) {
|
|
@@ -349,8 +347,8 @@ class _CalDateTimeSetting extends StatefulWidget {
|
|
hide(context);
|
|
hide(context);
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
widget: OverlayContainer(
|
|
widget: OverlayContainer(
|
|
- child: this,
|
|
|
|
constraints: BoxConstraints.loose(const Size(140, 100)),
|
|
constraints: BoxConstraints.loose(const Size(140, 100)),
|
|
|
|
+ child: this,
|
|
),
|
|
),
|
|
identifier: _CalDateTimeSetting.identifier(),
|
|
identifier: _CalDateTimeSetting.identifier(),
|
|
anchorContext: context,
|
|
anchorContext: context,
|
|
@@ -415,8 +413,8 @@ class _CalDateTimeSettingState extends State<_CalDateTimeSetting> {
|
|
overlayIdentifier = child.toString();
|
|
overlayIdentifier = child.toString();
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
FlowyOverlay.of(context).insertWithAnchor(
|
|
widget: OverlayContainer(
|
|
widget: OverlayContainer(
|
|
- child: child,
|
|
|
|
constraints: BoxConstraints.loose(const Size(460, 440)),
|
|
constraints: BoxConstraints.loose(const Size(460, 440)),
|
|
|
|
+ child: child,
|
|
),
|
|
),
|
|
identifier: overlayIdentifier!,
|
|
identifier: overlayIdentifier!,
|
|
anchorContext: context,
|
|
anchorContext: context,
|