mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
feat: optimize calendar for mobile (#3979)
* feat: calendar mobile ui - Resolves double border on Calendar Cells - Adds Jump to year quick action for Mobile - Reduces Cell height in Calendar - Change out EventList with EventIndicator in Cell * chore: push card details screen * fix: navigation to card details * feat: day events screen update on new event * fix: changes after merging main * fix: missing argument * fix: amend test and remove stack
This commit is contained in:
@ -3,6 +3,7 @@ import 'package:appflowy/mobile/presentation/database/card/card_detail/mobile_cr
|
||||
import 'package:appflowy/mobile/presentation/database/card/card_property_edit/card_property_edit_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/database/card/row/cells/cells.dart';
|
||||
import 'package:appflowy/mobile/presentation/database/mobile_board_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/database/mobile_calendar_events_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/database/mobile_calendar_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/database/mobile_grid_screen.dart';
|
||||
import 'package:appflowy/mobile/presentation/favorite/mobile_favorite_page.dart';
|
||||
@ -77,6 +78,10 @@ GoRouter generateRouter(Widget child) {
|
||||
_mobileCodeLanguagePickerPageRoute(),
|
||||
_mobileLanguagePickerPageRoute(),
|
||||
_mobileFontPickerPageRoute(),
|
||||
|
||||
// calendar related
|
||||
_mobileCalendarEventsPageRoute(),
|
||||
|
||||
_mobileBlockSettingsPageRoute(),
|
||||
],
|
||||
|
||||
@ -331,6 +336,25 @@ GoRoute _mobileFontPickerPageRoute() {
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _mobileCalendarEventsPageRoute() {
|
||||
return GoRoute(
|
||||
path: MobileCalendarEventsScreen.routeName,
|
||||
pageBuilder: (context, state) {
|
||||
final args = state.extra as Map<String, dynamic>;
|
||||
|
||||
return MaterialPage(
|
||||
child: MobileCalendarEventsScreen(
|
||||
calendarBloc: args[MobileCalendarEventsScreen.calendarBlocKey],
|
||||
date: args[MobileCalendarEventsScreen.calendarDateKey],
|
||||
events: args[MobileCalendarEventsScreen.calendarEventsKey],
|
||||
rowCache: args[MobileCalendarEventsScreen.calendarRowCacheKey],
|
||||
viewId: args[MobileCalendarEventsScreen.calendarViewIdKey],
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
GoRoute _desktopHomeScreenRoute() {
|
||||
return GoRoute(
|
||||
path: DesktopHomeScreen.routeName,
|
||||
|
Reference in New Issue
Block a user