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