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(
userId: '2', body: TimelinePostScreen(
service: service, userId: '2',
options: options, service: service,
post: service.posts.last, options: options,
onPostDelete: () {}, post: service.posts.last,
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(
userId: '2', body: TimelineScreen(
options: options, userId: '2',
onPostTap: (_) {}, options: options,
service: service, onPostTap: (_) {},
service: service,
),
); );
} }