mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: adjust code block, outline block on mobile (#3940)
* fix: missing delete cover button on mobile * fix: ensure last node is an empty paragraph * feat: adjust code block * feat: adjust code block on mobile * feat: adjust outline on mobile * fix: appimage builder issues * fix: view title issues * fix: integration tests
This commit is contained in:
@ -4,6 +4,7 @@ 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/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';
|
||||
import 'package:appflowy/startup/startup.dart';
|
||||
import 'package:appflowy/startup/tasks/app_widget.dart';
|
||||
@ -53,6 +54,9 @@ GoRouter generateRouter(Widget child) {
|
||||
// emoji picker
|
||||
_mobileEmojiPickerPageRoute(),
|
||||
_mobileImagePickerPageRoute(),
|
||||
|
||||
// code language picker
|
||||
_mobileCodeLanguagePickerPageRoute(),
|
||||
],
|
||||
|
||||
// Desktop and Mobile
|
||||
@ -230,6 +234,18 @@ GoRoute _mobileImagePickerPageRoute() {
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _mobileCodeLanguagePickerPageRoute() {
|
||||
return GoRoute(
|
||||
parentNavigatorKey: AppGlobals.rootNavKey,
|
||||
path: MobileCodeLanguagePickerScreen.routeName,
|
||||
pageBuilder: (context, state) {
|
||||
return const MaterialPage(
|
||||
child: MobileCodeLanguagePickerScreen(),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _desktopHomeScreenRoute() {
|
||||
return GoRoute(
|
||||
path: DesktopHomeScreen.routeName,
|
||||
|
Reference in New Issue
Block a user