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) {
|
||||
var service = TestTimelineService()..fetchPosts(null);
|
||||
var options = const TimelineOptions(doubleTapTolike: true);
|
||||
return TimelinePostScreen(
|
||||
userId: '2',
|
||||
service: service,
|
||||
options: options,
|
||||
post: service.posts.last,
|
||||
onPostDelete: () {},
|
||||
return Scaffold(
|
||||
body: TimelinePostScreen(
|
||||
userId: '2',
|
||||
service: service,
|
||||
options: options,
|
||||
post: service.posts.last,
|
||||
onPostDelete: () {},
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -82,10 +84,12 @@ Widget postScreenUseCase(BuildContext context) {
|
|||
Widget timelineUseCase(BuildContext context) {
|
||||
var service = TestTimelineService()..fetchPosts(null);
|
||||
var options = const TimelineOptions(doubleTapTolike: true);
|
||||
return TimelineScreen(
|
||||
userId: '2',
|
||||
options: options,
|
||||
onPostTap: (_) {},
|
||||
service: service,
|
||||
return Scaffold(
|
||||
body: TimelineScreen(
|
||||
userId: '2',
|
||||
options: options,
|
||||
onPostTap: (_) {},
|
||||
service: service,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue