fix: remove the text Navigator from FlutterTimelineNavigatorUserStory

This commit is contained in:
Jacques 2025-02-17 15:02:21 +01:00
parent 7262729a04
commit 2221f8286a
3 changed files with 7 additions and 8 deletions

View file

@ -35,7 +35,7 @@ And import this package: import 'package:intl/date_symbol_data_local.dart';
To use the userstory add the following code somewhere in your widget tree:
````
timeLineNavigatorUserStory(TimelineUserStoryConfiguration, context),
timeLineUserStory(TimelineUserStoryConfiguration, context),
````

View file

@ -18,7 +18,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
theme: theme,
home: const FlutterTimelineNavigatorUserstory(
home: const FlutterTimelineUserstory(
currentUserId: "1",
),
);

View file

@ -1,8 +1,8 @@
import "package:flutter/material.dart";
import "package:flutter_timeline/flutter_timeline.dart";
class FlutterTimelineNavigatorUserstory extends StatefulWidget {
const FlutterTimelineNavigatorUserstory({
class FlutterTimelineUserstory extends StatefulWidget {
const FlutterTimelineUserstory({
required this.currentUserId,
this.options = const TimelineOptions(),
this.timelineService,
@ -14,12 +14,11 @@ class FlutterTimelineNavigatorUserstory extends StatefulWidget {
final String currentUserId;
@override
State<FlutterTimelineNavigatorUserstory> createState() =>
_FlutterTimelineNavigatorUserstoryState();
State<FlutterTimelineUserstory> createState() =>
_FlutterTimelineUserstoryState();
}
class _FlutterTimelineNavigatorUserstoryState
extends State<FlutterTimelineNavigatorUserstory> {
class _FlutterTimelineUserstoryState extends State<FlutterTimelineUserstory> {
late TimelineService timelineService;
@override