SHARE
TWEET

Untitled

a guest Jun 18th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @override Widget build(BuildContext context) {
  2.  
  3.     Column taskView = Column(
  4.  
  5.       children: <Widget>[  
  6.         ...,
  7.         Expanded(
  8.           child: ListView.builder(
  9.             padding: EdgeInsets.all(0.0),
  10.             itemCount: tasks.length,
  11.             itemBuilder: (context, index) {
  12.               return RadioListTile<String>(
  13.                 title:  Text(tasks[index]),
  14.                 value: tasks[index],
  15.                 groupValue: selectedRadio,
  16.                 onChanged: (val){
  17.                     setSelectedRadio(val);
  18.                 }
  19.               );
  20.             },
  21.           ),
  22.         ),
  23.       ],
  24.     );
  25.     return Scaffold(
  26.       body: taskView,
  27.     );
  28.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top