mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 18:43:45 +02:00
change
This commit is contained in:
parent
d973d22391
commit
8a6cfbb2de
1 changed files with 15 additions and 11 deletions
|
@ -64,12 +64,14 @@ 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(doubleTapTolike: true);
|
var options = const TimelineOptions(doubleTapTolike: true);
|
||||||
return TimelinePostScreen(
|
return Scaffold(
|
||||||
|
body: TimelinePostScreen(
|
||||||
userId: '2',
|
userId: '2',
|
||||||
service: service,
|
service: service,
|
||||||
options: options,
|
options: options,
|
||||||
post: service.posts.last,
|
post: service.posts.last,
|
||||||
onPostDelete: () {},
|
onPostDelete: () {},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,10 +84,12 @@ 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(doubleTapTolike: true);
|
var options = const TimelineOptions(doubleTapTolike: true);
|
||||||
return TimelineScreen(
|
return Scaffold(
|
||||||
|
body: TimelineScreen(
|
||||||
userId: '2',
|
userId: '2',
|
||||||
options: options,
|
options: options,
|
||||||
onPostTap: (_) {},
|
onPostTap: (_) {},
|
||||||
service: service,
|
service: service,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue