Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Leave space for the Android nav bar on the podcast edit and match screens

Barnabasd6f9919c708a
diff --git a/lib/screens/admin_podcasts_screen.dart b/lib/screens/admin_podcasts_screen.dart
index 9300ecbf..acbbb4ad 100644
--- a/lib/screens/admin_podcasts_screen.dart
+++ b/lib/screens/admin_podcasts_screen.dart
@@ -2470,7 +2470,7 @@ class _PodcastMatchSheetState extends State<_PodcastMatchSheet> {
? Center(child: Text(l.adminPodcastsNoResults, style: tt.bodySmall?.copyWith(color: cs.onSurface.withValues(alpha: 0.24))))
: ListView.builder(
controller: sc,
- padding: const EdgeInsets.fromLTRB(16, 8, 16, 32),
+ padding: EdgeInsets.fromLTRB(16, 8, 16, 32 + MediaQuery.of(context).viewPadding.bottom),
itemCount: _results.length,
itemBuilder: (_, i) {
final pod = _extractPod(_results[i]);
diff --git a/lib/screens/podcast_edit_screen.dart b/lib/screens/podcast_edit_screen.dart
index bcf5e6b3..1fed47ba 100644
--- a/lib/screens/podcast_edit_screen.dart
+++ b/lib/screens/podcast_edit_screen.dart
@@ -179,7 +179,8 @@ class _PodcastEditScreenState extends State<PodcastEditScreen> {
],
),
body: ListView(
- padding: EdgeInsets.fromLTRB(20, 12, 20, 32 + MediaQuery.of(context).viewInsets.bottom),
+ padding: EdgeInsets.fromLTRB(20, 12, 20,
+ 32 + MediaQuery.of(context).viewInsets.bottom + MediaQuery.of(context).viewPadding.bottom),
children: [
// Cover
Center(