diff --git a/lib/pages/widgets/local_popup_menu_button.dart b/lib/pages/widgets/local_popup_menu_button.dart index 44facd4..2c556af 100644 --- a/lib/pages/widgets/local_popup_menu_button.dart +++ b/lib/pages/widgets/local_popup_menu_button.dart @@ -102,8 +102,14 @@ class _LocalPopupMenuButtonState extends State { value: choice, child: Row( children: [ - LocalText(context, choice.textKey ?? "", - color: choice.enabled ? primaryColor : Colors.grey), + 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, ), diff --git a/lib/pages/widgets/local_popupmenu.dart b/lib/pages/widgets/local_popupmenu.dart index d5931b1..1df056a 100644 --- a/lib/pages/widgets/local_popupmenu.dart +++ b/lib/pages/widgets/local_popupmenu.dart @@ -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});