add carton editor for mix carton
This commit is contained in:
@@ -33,6 +33,14 @@ class LocalRadioButtons<T> extends StatelessWidget {
|
||||
onTap: () => callback!(e),
|
||||
child: Row(children: <Widget>[
|
||||
Radio<T>(
|
||||
fillColor: MaterialStateProperty.resolveWith((states) {
|
||||
// active
|
||||
if (states.contains(MaterialState.selected)) {
|
||||
return primaryColor;
|
||||
}
|
||||
// inactive
|
||||
return labelColor;
|
||||
}),
|
||||
activeColor: primaryColor,
|
||||
groupValue: selectedValue,
|
||||
value: e,
|
||||
@@ -42,7 +50,7 @@ class LocalRadioButtons<T> extends StatelessWidget {
|
||||
),
|
||||
Text(e.toString(),
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontSize: 15,
|
||||
color:
|
||||
e == selectedValue ? primaryColor : Colors.black)),
|
||||
]),
|
||||
@@ -67,7 +75,14 @@ class LocalRadioButtons<T> extends StatelessWidget {
|
||||
e == selectedValue ? primaryColor : Colors.grey,
|
||||
),
|
||||
),
|
||||
Text(e.toString()),
|
||||
Text(
|
||||
e.toString(),
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
color: e == selectedValue
|
||||
? primaryColor
|
||||
: Colors.black),
|
||||
),
|
||||
]),
|
||||
)
|
||||
: Container())
|
||||
|
||||
Reference in New Issue
Block a user