I had an unwanted top padding in listview inside scaffold that has no appbar and I want to delete it
Thanks to https://github.com/flutter/flutter/issues/14842 :
Just wrap the listview with MediaQuery.removePadding widget like that:
MediaQuery.removePadding(
context: context,
removeTop: true,
child: ListView()
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.