timeLineNavigatorUserStory function

Widget timeLineNavigatorUserStory({
  1. required BuildContext context,
  2. TimelineUserStoryConfiguration? configuration,
})

A widget function that creates a timeline navigator for user stories.

This function creates a navigator for displaying user stories on a timeline. It takes a BuildContext and an optional TimelineUserStoryConfiguration as parameters. If no configuration is provided, default values will be used.

Implementation

Widget timeLineNavigatorUserStory({
  required BuildContext context,
  TimelineUserStoryConfiguration? configuration,
}) {
  var config = configuration ??
      TimelineUserStoryConfiguration(
        userId: 'test_user',
        service: TimelineService(
          postService: LocalTimelinePostService(),
        ),
        optionsBuilder: (context) => const TimelineOptions(),
      );

  return _timelineScreenRoute(configuration: config, context: context);
}