Reputation: 57
I am using group_radio_button
and need to change text color (items color) only here am using items are (_statusUpdate)
final List<String> _statusUpdate = ["Lunch", "Meeting", "Available"];
SizedBox(
height: 150,
child: Padding(
padding:
const EdgeInsets.only(top: 30.0, left: 60.0, bottom: 20.0),
child: Column(
children: <Widget>[
Transform.scale(
scale: 1.4,
child: RadioGroup<String>.builder(
groupValue: _verticalGroupValue,
onChanged: (value) => setState(() {
_verticalGroupValue = value!;
print("click value : " + value + _verticalGroupValue);
_saveSwitch();
}),
items: _statusUpdate,
itemBuilder: (item) => RadioButtonBuilder(
item,
),
activeColor: Colors.green,)
,),
],
),
),
),
Upvotes: 0
Views: 174
Reputation: 63604
You can call textStyle
on RadioGroup<String>.builder
.
child: RadioGroup<String>.builder(
textStyle: TextStyle(color: Colors.pink),
groupValue: _verticalGroupValue,
Upvotes: 1