diff --git a/examples/api/lib/widgets/focus_scope/focus_scope.0.dart b/examples/api/lib/widgets/focus_scope/focus_scope.0.dart index 9681bc46f20..06f93c98bbb 100644 --- a/examples/api/lib/widgets/focus_scope/focus_scope.0.dart +++ b/examples/api/lib/widgets/focus_scope/focus_scope.0.dart @@ -135,7 +135,7 @@ class _FocusScopeExampleState extends State { child: Pane( icon: const Icon(Icons.menu), focusNode: foregroundNode, - // TRY THIS: Try changing this to Colors.green.withOpacity(0.8) to see for + // TRY THIS: Try changing this to Colors.green.withValues(alpha: 0.8) to see for // yourself that the hidden components do/don't get focus. backgroundColor: Colors.green, onPressed: backdropIsVisible ? null : () => setState(() => backdropIsVisible = true),