From c572e6cd8b7301be055975e2a192e3a906f32459 Mon Sep 17 00:00:00 2001 From: mike doornenbal Date: Tue, 30 Jul 2024 16:08:49 +0200 Subject: [PATCH] fix: imagepicker popup --- .../src/screens/timeline_post_creation_screen.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart b/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart index 8092286..0406314 100644 --- a/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart +++ b/packages/flutter_timeline_view/lib/src/screens/timeline_post_creation_screen.dart @@ -217,6 +217,17 @@ class _TimelinePostCreationScreenState Icons.insert_drive_file, ), ), + customButton: TextButton( + onPressed: () { + Navigator.pop(context); + }, + child: Text( + 'Cancel', + style: theme.textTheme.bodyMedium!.copyWith( + decoration: TextDecoration.underline, + ), + ), + ), ), ), );