From 677617dcf2a9f042950a8fd10946d57bf026357d Mon Sep 17 00:00:00 2001 From: Richard Shiue <71320345+richardshiue@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:32:24 +0800 Subject: [PATCH] fix: mobile grid launch review (#4839) * fix: mobile database sort editor not working on prod * fix: don't pop after creating field --- .../database/field/mobile_field_bottom_sheets.dart | 3 --- .../database/view/database_sort_bottom_sheet.dart | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_field_bottom_sheets.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_field_bottom_sheets.dart index bd539f4821..0f20737856 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_field_bottom_sheets.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/field/mobile_field_bottom_sheets.dart @@ -94,9 +94,6 @@ void mobileCreateFieldWorkflow( if (optionValues != null) { await optionValues.create(viewId: viewId, position: position); } - if (context.mounted) { - context.pop(); - } } /// Used to edit a field. diff --git a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_sort_bottom_sheet.dart b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_sort_bottom_sheet.dart index f840db7667..6beb89ffeb 100644 --- a/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_sort_bottom_sheet.dart +++ b/frontend/appflowy_flutter/lib/mobile/presentation/database/view/database_sort_bottom_sheet.dart @@ -262,11 +262,9 @@ class _SortItem extends StatelessWidget { children: [ Padding( padding: const EdgeInsets.symmetric(horizontal: 12.0), - child: Expanded( - child: FlowyText.medium( - LocaleKeys.grid_sort_by.tr(), - fontSize: 15, - ), + child: FlowyText.medium( + LocaleKeys.grid_sort_by.tr(), + fontSize: 15, ), ), const VSpace(10),