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