Trying to add some widgets to before of a listview.... I searched and found to use expanded like:
return Scaffold(
appBar: AppBar(
title: Text('Test Listview'),
),
body: Container(
padding: const EdgeInsets.all(10.0),
child: Column(
children: <Widget>[
Text('header'),
Expanded(
child: ListView.builder(
itemCount: providerApp.domains.length,
itemBuilder: (BuildContext context, int index) {
return Container( ......
But the issue here is that the Text('header') will be fixed, looking for some way where the the widget scrolls together with listview...
Thanks !!!
