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
You should be returning ListTile
not Container
now and your tiles will be titled according to the ListTile
title:
property field where "providerapp.domains" is the list of strings.
Container(
child: Column(children: [
Text('header'),
ListView.builder(
itemCount: providerApp.domains.length,
itemBuilder: (BuildContext context, int index) {
return ListTile(
title: Text('${(providerApp.domains)[index]}'),
);
},
),
]),
)