mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 10:33:44 +02:00
test feature
This commit is contained in:
parent
54b433e96b
commit
d973d22391
1 changed files with 3 additions and 3 deletions
|
@ -63,12 +63,12 @@ class WidgetBookApp extends StatelessWidget {
|
||||||
)
|
)
|
||||||
Widget postScreenUseCase(BuildContext context) {
|
Widget postScreenUseCase(BuildContext context) {
|
||||||
var service = TestTimelineService()..fetchPosts(null);
|
var service = TestTimelineService()..fetchPosts(null);
|
||||||
var options = const TimelineOptions();
|
var options = const TimelineOptions(doubleTapTolike: true);
|
||||||
return TimelinePostScreen(
|
return TimelinePostScreen(
|
||||||
userId: '2',
|
userId: '2',
|
||||||
service: service,
|
service: service,
|
||||||
options: options,
|
options: options,
|
||||||
post: service.posts.first,
|
post: service.posts.last,
|
||||||
onPostDelete: () {},
|
onPostDelete: () {},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ Widget postScreenUseCase(BuildContext context) {
|
||||||
)
|
)
|
||||||
Widget timelineUseCase(BuildContext context) {
|
Widget timelineUseCase(BuildContext context) {
|
||||||
var service = TestTimelineService()..fetchPosts(null);
|
var service = TestTimelineService()..fetchPosts(null);
|
||||||
var options = const TimelineOptions();
|
var options = const TimelineOptions(doubleTapTolike: true);
|
||||||
return TimelineScreen(
|
return TimelineScreen(
|
||||||
userId: '2',
|
userId: '2',
|
||||||
options: options,
|
options: options,
|
||||||
|
|
Loading…
Reference in a new issue