Skip to content

Commit

Permalink
padding: EdgeInsets.zero
Browse files Browse the repository at this point in the history
->

MediaQuery.removePadding(
          context: context,
          removeTop: true,
  • Loading branch information
kangsudal committed Oct 30, 2019
1 parent f881a33 commit c39cc59
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,21 @@ class _MyHomePageState extends State<MyHomePage> {
Container(
// decoration: BoxDecoration(border: Border.all()),
color: Colors.blue,
child: ListView.builder(
itemBuilder: (context, index) {
return Container(
decoration: BoxDecoration(border: Border.all()),
// color: Colors.blue,
child: listItem(index));
},
itemCount: 10,
shrinkWrap: true,
physics: ClampingScrollPhysics(),
child: MediaQuery.removePadding(
context: context,
removeTop: true,
child: ListView.builder(
// padding: EdgeInsets.zero,
itemBuilder: (context, index) {
return Container(
decoration: BoxDecoration(border: Border.all()),
// color: Colors.blue,
child: listItem(index));
},
itemCount: 10,
shrinkWrap: true,
physics: ClampingScrollPhysics(),
),
),
),
ListTile(
Expand Down

0 comments on commit c39cc59

Please sign in to comment.