From 654b621ba7b66ac4d75dfba404d700316e2614b8 Mon Sep 17 00:00:00 2001 From: FahadFahim71 <45163265+FahadFahim71@users.noreply.github.com> Date: Tue, 5 Mar 2024 15:27:09 +0100 Subject: [PATCH] feat(user-stories): add all routes to gorouter and navigator user stories --- .../flutter_timeline/example/lib/config/config.dart | 1 + .../lib/src/flutter_timeline_navigator_userstory.dart | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/flutter_timeline/example/lib/config/config.dart b/packages/flutter_timeline/example/lib/config/config.dart index 5b3b5ca..8ed1cec 100644 --- a/packages/flutter_timeline/example/lib/config/config.dart +++ b/packages/flutter_timeline/example/lib/config/config.dart @@ -82,6 +82,7 @@ void createPost( onPostOverview: (post) { navigateToOverview(context, service, options, post); }, + enablePostOverviewScreen: configuration.enablePostOverviewScreen, ), ), ), diff --git a/packages/flutter_timeline/lib/src/flutter_timeline_navigator_userstory.dart b/packages/flutter_timeline/lib/src/flutter_timeline_navigator_userstory.dart index d89653a..70fe59f 100644 --- a/packages/flutter_timeline/lib/src/flutter_timeline_navigator_userstory.dart +++ b/packages/flutter_timeline/lib/src/flutter_timeline_navigator_userstory.dart @@ -115,9 +115,9 @@ Widget _postDetailScreenRoute({ /// A widget function that creates a post creation screen route. /// -/// This function creates a route for displaying a post creation screen. It takes -/// a [BuildContext] and an optional [TimelineUserStoryConfiguration] as -/// parameters. If no configuration is provided, default values will be used. +/// This function creates a route for displaying a post creation screen. +/// It takes a [BuildContext] and an optional [TimelineUserStoryConfiguration] +/// as parameters. If no configuration is provided, default values will be used. Widget _postCreationScreenRoute({ required BuildContext context, TimelineUserStoryConfiguration? configuration, @@ -171,8 +171,8 @@ Widget _postCreationScreenRoute({ /// A widget function that creates a post overview screen route. /// -/// This function creates a route for displaying a post overview screen. It takes -/// a [BuildContext], a [TimelinePost], and an optional +/// This function creates a route for displaying a post overview screen. +/// It takes a [BuildContext], a [TimelinePost], and an optional /// [TimelineUserStoryConfiguration] as parameters. If no configuration is /// provided, default values will be used. Widget _postOverviewScreenRoute({