mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: keep the toolbar the same height as the keyboard to optimize the editing experience (#3947)
This commit is contained in:
@ -3,6 +3,8 @@ import 'package:appflowy/mobile/presentation/database/mobile_calendar_screen.dar
|
||||
import 'package:appflowy/mobile/presentation/database/mobile_grid_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/favorite/mobile_favorite_page.dart';
|
||||
import 'package:appflowy/mobile/presentation/presentation.dart';
|
||||
import 'package:appflowy/mobile/presentation/setting/font/font_picker_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/setting/language/language_picker_screen.dart';
|
||||
import 'package:appflowy/plugins/base/emoji/emoji_picker_screen.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/code_block/code_language_screen.dart';
|
||||
import 'package:appflowy/plugins/document/presentation/editor_plugins/image/image_picker_screen.dart';
|
||||
@ -57,6 +59,8 @@ GoRouter generateRouter(Widget child) {
|
||||
|
||||
// code language picker
|
||||
_mobileCodeLanguagePickerPageRoute(),
|
||||
_mobileLanguagePickerPageRoute(),
|
||||
_mobileFontPickerPageRoute(),
|
||||
],
|
||||
|
||||
// Desktop and Mobile
|
||||
@ -215,8 +219,12 @@ GoRoute _mobileEmojiPickerPageRoute() {
|
||||
parentNavigatorKey: AppGlobals.rootNavKey,
|
||||
path: MobileEmojiPickerScreen.routeName,
|
||||
pageBuilder: (context, state) {
|
||||
return const MaterialPage(
|
||||
child: MobileEmojiPickerScreen(),
|
||||
final title =
|
||||
state.uri.queryParameters[MobileEmojiPickerScreen.pageTitle];
|
||||
return MaterialPage(
|
||||
child: MobileEmojiPickerScreen(
|
||||
title: title,
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
@ -246,6 +254,30 @@ GoRoute _mobileCodeLanguagePickerPageRoute() {
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _mobileLanguagePickerPageRoute() {
|
||||
return GoRoute(
|
||||
parentNavigatorKey: AppGlobals.rootNavKey,
|
||||
path: LanguagePickerScreen.routeName,
|
||||
pageBuilder: (context, state) {
|
||||
return const MaterialPage(
|
||||
child: LanguagePickerScreen(),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _mobileFontPickerPageRoute() {
|
||||
return GoRoute(
|
||||
parentNavigatorKey: AppGlobals.rootNavKey,
|
||||
path: FontPickerScreen.routeName,
|
||||
pageBuilder: (context, state) {
|
||||
return const MaterialPage(
|
||||
child: FontPickerScreen(),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _desktopHomeScreenRoute() {
|
||||
return GoRoute(
|
||||
path: DesktopHomeScreen.routeName,
|
||||
|
@ -5,10 +5,11 @@ import 'package:appflowy/env/env.dart';
|
||||
import 'package:appflowy/user/application/supabase_realtime.dart';
|
||||
import 'package:appflowy/workspace/application/settings/application_data_storage.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'package:url_protocol/url_protocol.dart';
|
||||
import 'package:hive_flutter/hive_flutter.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:supabase_flutter/supabase_flutter.dart';
|
||||
import 'package:url_protocol/url_protocol.dart';
|
||||
|
||||
import '../startup.dart';
|
||||
|
||||
// ONLY supports in macOS and Windows now.
|
||||
@ -58,7 +59,9 @@ class InitSupabaseTask extends LaunchTask {
|
||||
@override
|
||||
Future<void> dispose() async {
|
||||
await realtimeService?.dispose();
|
||||
realtimeService = null;
|
||||
supabase?.dispose();
|
||||
supabase = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user