Skip to content

Commit 1a4ea30

Browse files
committed
Rename withControlNotifier to withControlInheritedNotifier for clarity and update references in withControlContext.
1 parent f7f4a9e commit 1a4ea30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/flet/lib/src/widgets/control_inherited_notifier.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ControlInheritedNotifier extends InheritedNotifier<Control> {
3535
///
3636
/// If `"skip_inherited_notifier"` internal is `true`, this returns
3737
/// [builder] unwrapped to preserve historical semantics.
38-
Widget withControlNotifier(Control control, WidgetBuilder builder) {
38+
Widget withControlInheritedNotifier(Control control, WidgetBuilder builder) {
3939
if (control.internals?["skip_inherited_notifier"] == true) {
4040
return Builder(builder: builder);
4141
}
@@ -50,14 +50,14 @@ Widget withControlNotifier(Control control, WidgetBuilder builder) {
5050
}
5151

5252
/// Convenience wrapper that applies both:
53-
/// - [withControlNotifier]
53+
/// - [withControlInheritedNotifier]
5454
/// - [withControlTheme]
5555
Widget withControlContext(
5656
Control control,
5757
WidgetBuilder builder,
5858
) {
5959
return Builder(builder: (context) {
60-
final child = withControlNotifier(control, builder);
60+
final child = withControlInheritedNotifier(control, builder);
6161
return withControlTheme(control, context, child);
6262
});
6363
}

0 commit comments

Comments
 (0)