Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @override Widget build(BuildContext context) {
- Column taskView = Column(
- children: <Widget>[
- ...,
- Expanded(
- child: ListView.builder(
- padding: EdgeInsets.all(0.0),
- itemCount: tasks.length,
- itemBuilder: (context, index) {
- return RadioListTile<String>(
- title: Text(tasks[index]),
- value: tasks[index],
- groupValue: selectedRadio,
- onChanged: (val){
- setSelectedRadio(val);
- }
- );
- },
- ),
- ),
- ],
- );
- return Scaffold(
- body: taskView,
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement