add carton editor for mix carton

This commit is contained in:
tzw
2024-02-02 18:00:51 +06:30
parent 61f119c063
commit 891330a59e
18 changed files with 903 additions and 158 deletions

View File

@@ -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())