This commit is contained in:
Niels Gorter 2024-01-26 10:03:52 +01:00
parent d973d22391
commit 8a6cfbb2de

View file

@ -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,
),
);
}