ListView: Remove the padding

This way it properly aligns up with the hamburger menu.

I also discovered this 'debugShowMaterialGrid' option which makes
working with padding issues much much easier.
This commit is contained in:
Vishesh Handa
2019-01-23 15:19:29 +01:00
parent e590c3c132
commit b9b42d950f
2 changed files with 1 additions and 1 deletions

View File

@ -45,6 +45,7 @@ class JournalApp extends StatelessWidget {
'/setupRemoteGit': (context) => OnBoardingScreen(onCompleted), '/setupRemoteGit': (context) => OnBoardingScreen(onCompleted),
}, },
debugShowCheckedModeBanner: false, debugShowCheckedModeBanner: false,
//debugShowMaterialGrid: true,
); );
} }
} }

View File

@ -21,7 +21,6 @@ class JournalList extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return new ListView.builder( return new ListView.builder(
padding: const EdgeInsets.all(8.0),
itemBuilder: (context, i) { itemBuilder: (context, i) {
if (i >= notes.length) { if (i >= notes.length) {
return null; return null;