File tree Expand file tree Collapse file tree 6 files changed +15
-88
lines changed
frontend/appflowy_flutter/lib
plugins/database_view/calendar/presentation Expand file tree Collapse file tree 6 files changed +15
-88
lines changed Original file line number Diff line number Diff line change 11import 'package:appflowy/generated/flowy_svgs.g.dart' ;
22import 'package:appflowy/generated/locale_keys.g.dart' ;
3- import 'package:appflowy/mobile/presentation/bottom_sheet/bottom_sheet_action_widget.dart' ;
4- import 'package:appflowy/mobile/presentation/widgets/show_flowy_mobile_bottom_sheet.dart' ;
3+ import 'package:appflowy/mobile/presentation/bottom_sheet/bottom_sheet.dart' ;
54import 'package:appflowy/plugins/database_view/board/application/board_bloc.dart' ;
65import 'package:appflowy/plugins/database_view/grid/presentation/widgets/header/field_type_extension.dart' ;
76import 'package:appflowy_backend/protobuf/flowy-database2/field_entities.pbenum.dart' ;
@@ -107,9 +106,11 @@ class _GroupCardHeaderState extends State<GroupCardHeader> {
107106 color: Theme .of (context).colorScheme.onSurface,
108107 ),
109108 splashRadius: 5 ,
110- onPressed: () => showFlowyMobileBottomSheet (
109+ onPressed: () => showMobileBottomSheet (
111110 context,
112111 title: LocaleKeys .board_column_groupActions.tr (),
112+ showHeader: true ,
113+ showCloseButton: true ,
113114 builder: (_) {
114115 return Row (
115116 children: [
Original file line number Diff line number Diff line change 11import 'dart:async' ;
22import 'package:appflowy/generated/locale_keys.g.dart' ;
3- import 'package:appflowy/mobile/presentation/widgets/widgets .dart' ;
3+ import 'package:appflowy/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet .dart' ;
44import 'package:appflowy/plugins/database_view/application/cell/cell_controller_builder.dart' ;
55import 'package:appflowy/plugins/database_view/widgets/row/cell_builder.dart' ;
66import 'package:appflowy/plugins/database_view/widgets/row/cells/url_cell/url_cell_bloc.dart' ;
@@ -98,9 +98,11 @@ class _RowDetailURLCellState extends GridCellState<RowDetailURLCell> {
9898 }
9999
100100 void _showURLEditor (String content) {
101- showFlowyMobileBottomSheet (
101+ showMobileBottomSheet (
102102 context,
103103 title: LocaleKeys .board_mobile_editURL.tr (),
104+ showHeader: true ,
105+ showCloseButton: true ,
104106 builder: (_) {
105107 final controller = TextEditingController (text: content);
106108 return TextField (
Original file line number Diff line number Diff line change 11import 'dart:async' ;
22import 'package:appflowy/generated/locale_keys.g.dart' ;
3- import 'package:appflowy/mobile/presentation/widgets/widgets .dart' ;
3+ import 'package:appflowy/mobile/presentation/bottom_sheet/show_mobile_bottom_sheet .dart' ;
44import 'package:appflowy/plugins/database_view/application/cell/cell_controller_builder.dart' ;
55import 'package:appflowy/plugins/database_view/widgets/row/cell_builder.dart' ;
66import 'package:appflowy/plugins/database_view/widgets/row/cells/url_cell/url_cell_bloc.dart' ;
@@ -83,9 +83,11 @@ class _GridURLCellState extends GridCellState<MobileURLCell> {
8383 final url = shouldAddScheme ? 'http://$content ' : content;
8484 canLaunchUrlString (url).then ((value) => launchUrlString (url));
8585 },
86- onLongPress: () => showFlowyMobileBottomSheet (
86+ onLongPress: () => showMobileBottomSheet (
8787 context,
8888 title: LocaleKeys .board_mobile_editURL.tr (),
89+ showHeader: true ,
90+ showCloseButton: true ,
8991 builder: (_) {
9092 final controller = TextEditingController (text: content);
9193 return TextField (
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11export 'flowy_mobile_option_decorate_box.dart' ;
22export 'flowy_mobile_state_container.dart' ;
33export 'flowy_option_tile.dart' ;
4- export 'show_flowy_mobile_bottom_sheet.dart' ;
54export 'show_flowy_mobile_confirm_dialog.dart' ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import 'package:appflowy/generated/locale_keys.g.dart';
33import 'package:appflowy/mobile/presentation/bottom_sheet/bottom_sheet.dart' ;
44import 'package:appflowy/mobile/presentation/database/card/card.dart' ;
55import 'package:appflowy/mobile/presentation/presentation.dart' ;
6- import 'package:appflowy/mobile/presentation/widgets/show_flowy_mobile_bottom_sheet.dart' ;
76import 'package:appflowy/plugins/database_view/application/database_controller.dart' ;
87import 'package:appflowy/plugins/database_view/application/field/field_controller.dart' ;
98import 'package:appflowy/plugins/database_view/calendar/application/calendar_bloc.dart' ;
@@ -222,9 +221,11 @@ class _CalendarPageState extends State<CalendarPage> {
222221 children: [
223222 GestureDetector (
224223 onTap: PlatformExtension .isMobile
225- ? () => showFlowyMobileBottomSheet (
224+ ? () => showMobileBottomSheet (
226225 context,
227226 title: LocaleKeys .calendar_quickJumpYear.tr (),
227+ showHeader: true ,
228+ showCloseButton: true ,
228229 builder: (_) => SizedBox (
229230 height: 200 ,
230231 child: YearPicker (
You can’t perform that action at this time.
0 commit comments