Skip to content

Commit

Permalink
fix for readonly multicombo labels
Browse files Browse the repository at this point in the history
  • Loading branch information
moovida committed Jan 31, 2025
1 parent df9a7e5 commit 97c6d8f
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions lib/com/hydrologis/flutterlibs/forms/forms_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -696,17 +696,17 @@ Tuple2<ListTile, bool>? getWidget(
// break;
case TYPE_STRINGMULTIPLECHOICE:
{
if (itemReadonly &&
presentationMode.detailMode != DetailMode.DETAILED) {
// ! TODO
return Tuple2(
ListTile(
leading: icon,
title: AFormWidget.getSimpleLabelValue(
label, formItem, presentationMode),
),
false);
}
// if (itemReadonly &&
// presentationMode.detailMode != DetailMode.DETAILED) {
// // ! TODO
// return Tuple2(
// ListTile(
// leading: icon,
// title: AFormWidget.getSimpleLabelValue(
// label, formItem, presentationMode),
// ),
// false);
// }
return Tuple2(
ListTile(
leading: icon,
Expand All @@ -717,17 +717,17 @@ Tuple2<ListTile, bool>? getWidget(
}
case TYPE_INTMULTIPLECHOICE:
{
if (itemReadonly &&
presentationMode.detailMode != DetailMode.DETAILED) {
// ! TODO
return Tuple2(
ListTile(
leading: icon,
title: AFormWidget.getSimpleLabelValue(
label, formItem, presentationMode),
),
false);
}
// if (itemReadonly &&
// presentationMode.detailMode != DetailMode.DETAILED) {
// // ! TODO
// return Tuple2(
// ListTile(
// leading: icon,
// title: AFormWidget.getSimpleLabelValue(
// label, formItem, presentationMode),
// ),
// false);
// }
return Tuple2(
ListTile(
leading: icon,
Expand Down Expand Up @@ -1027,7 +1027,9 @@ class ComboboxWidgetState<T> extends State<ComboboxWidget> {
if (rawUrl != null) {
requiredFormUrlItems = widget._formHelper.getRequiredFormUrlItems();

print("rawUrl: $rawUrl");
var url = urlItemState.applyUrlSubstitutions(rawUrl!);
print("url: $url");
var jsonString = await FormsNetworkSupporter().getJsonString(url!);
if (jsonString != null) {
List<dynamic>? urlComboItems = jsonDecode(jsonString);
Expand Down

0 comments on commit 97c6d8f

Please sign in to comment.