mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 10:33:44 +02:00
fix: remove the text Navigator from FlutterTimelineNavigatorUserStory
This commit is contained in:
parent
7262729a04
commit
2221f8286a
3 changed files with 7 additions and 8 deletions
|
@ -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),
|
||||
````
|
||||
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class MyApp extends StatelessWidget {
|
|||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: theme,
|
||||
home: const FlutterTimelineNavigatorUserstory(
|
||||
home: const FlutterTimelineUserstory(
|
||||
currentUserId: "1",
|
||||
),
|
||||
);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue