Skip to content

Commit 7fc630a

Browse files
committed
Set default value for 'container' in SemanticsControl
Updated the 'container' property in SemanticsControl to default to false if not specified. This prevents potential null errors and ensures consistent behavior.
1 parent 2ff5b31 commit 7fc630a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/flet/lib/src/controls/semantics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class SemanticsControl extends StatelessWidget {
3131
hint: control.getString("hint"),
3232
onTapHint: control.getString("on_tap_hint"),
3333
onLongPressHint: control.getString("on_long_press_hint"),
34-
container: control.getBool("container")!,
34+
container: control.getBool("container", false)!,
3535
liveRegion: control.getBool("live_region"),
3636
obscured: control.getBool("obscured"),
3737
multiline: control.getBool("multiline"),

0 commit comments

Comments
 (0)