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