Skip to content

Commit

Permalink
Fix ListView padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3rndt committed Apr 10, 2024
1 parent 664d902 commit 465580b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/lib/screens.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class MainScreen extends StatelessWidget {
appBar: AppBar(title: const Text("Tab Main Screen")),
backgroundColor: Colors.indigo,
body: ListView(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.all(16)
.copyWith(bottom: MediaQuery.of(context).padding.bottom),
children: <Widget>[
const Padding(
padding: EdgeInsets.symmetric(horizontal: 30, vertical: 20),
Expand Down Expand Up @@ -126,7 +127,8 @@ class MainScreen2 extends StatelessWidget {
appBar: AppBar(title: const Text("Secondary Screen")),
backgroundColor: Colors.teal,
body: ListView(
padding: const EdgeInsets.all(16),
padding: const EdgeInsets.all(16)
.copyWith(bottom: MediaQuery.of(context).padding.bottom),
children: <Widget>[
Center(
child: ElevatedButton(
Expand Down

0 comments on commit 465580b

Please sign in to comment.