Skip to content

Commit

Permalink
fix: disabled reactive for FormLock
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimozkn committed Jul 24, 2024
1 parent a09ff61 commit ae668f8
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions designer_v2/lib/common_views/form_table_layout.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,22 @@ class FormSectionHeader extends StatelessWidget {
else
const SizedBox.shrink(),
if (showLock)
Row(children: [
ReactiveFormLock(
formControl: lockControl,
helpText: lockHelpText,
lockedStateText: lockedStateText,
unlockedStateText: unlockedStateText,
)
])
Row(
children: [
FormLock(
locked: lockControl?.value ?? false,
readOnly: lockControl?.disabled ?? false,
onLockChanged: lockControl!.enabled
? (value) {
lockControl?.value = value;
}
: null,
helpText: lockHelpText,
lockedStateText: lockedStateText,
unlockedStateText: unlockedStateText,
)
],
)
else
const SizedBox.shrink(),
],
Expand Down

0 comments on commit ae668f8

Please sign in to comment.