update local popup button
This commit is contained in:
@@ -102,7 +102,13 @@ class _LocalPopupMenuButtonState extends State<LocalPopupMenuButton> {
|
||||
value: choice,
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
LocalText(context, choice.textKey ?? "",
|
||||
choice.text != null
|
||||
? Text(choice.text!,
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color:
|
||||
choice.enabled ? primaryColor : Colors.grey))
|
||||
: LocalText(context, choice.textKey ?? "",
|
||||
color: choice.enabled ? primaryColor : Colors.grey),
|
||||
SizedBox(
|
||||
width: 10,
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
class LocalPopupMenu {
|
||||
int id;
|
||||
String? textKey;
|
||||
String? text;
|
||||
bool selected;
|
||||
bool highlight;
|
||||
bool enabled;
|
||||
LocalPopupMenu(
|
||||
{required this.id,
|
||||
this.textKey,
|
||||
this.text,
|
||||
this.selected = false,
|
||||
this.highlight = false,
|
||||
this.enabled = true});
|
||||
|
||||
Reference in New Issue
Block a user