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:
|
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) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
theme: theme,
|
theme: theme,
|
||||||
home: const FlutterTimelineNavigatorUserstory(
|
home: const FlutterTimelineUserstory(
|
||||||
currentUserId: "1",
|
currentUserId: "1",
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:flutter_timeline/flutter_timeline.dart";
|
import "package:flutter_timeline/flutter_timeline.dart";
|
||||||
|
|
||||||
class FlutterTimelineNavigatorUserstory extends StatefulWidget {
|
class FlutterTimelineUserstory extends StatefulWidget {
|
||||||
const FlutterTimelineNavigatorUserstory({
|
const FlutterTimelineUserstory({
|
||||||
required this.currentUserId,
|
required this.currentUserId,
|
||||||
this.options = const TimelineOptions(),
|
this.options = const TimelineOptions(),
|
||||||
this.timelineService,
|
this.timelineService,
|
||||||
|
@ -14,12 +14,11 @@ class FlutterTimelineNavigatorUserstory extends StatefulWidget {
|
||||||
final String currentUserId;
|
final String currentUserId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<FlutterTimelineNavigatorUserstory> createState() =>
|
State<FlutterTimelineUserstory> createState() =>
|
||||||
_FlutterTimelineNavigatorUserstoryState();
|
_FlutterTimelineUserstoryState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _FlutterTimelineNavigatorUserstoryState
|
class _FlutterTimelineUserstoryState extends State<FlutterTimelineUserstory> {
|
||||||
extends State<FlutterTimelineNavigatorUserstory> {
|
|
||||||
late TimelineService timelineService;
|
late TimelineService timelineService;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue