I have a CupertinoNavigationBar with a white background. Because of the white background my ListView has a padding on top and I don't know how to remove this.
Widget build(BuildContext context) {
return CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
backgroundColor: CupertinoColors.white,
border: Border(
bottom:
BorderSide(width: 1.0, color: primaryColorLight),
),
middle: Text('Feed'),
),
child: ListView(
children: <Widget>[
Container(
color: Colors.red,
height: 500.0,
),
Container(
color: Colors.blue,
height: 400.0,
),
],
),
);
}Hope anyone can help me with this.