Unverified Commit bce6622a authored by Alberto's avatar Alberto Committed by GitHub

fix(FocusScope): Example fix (#98668)

parent cb09fa23
...@@ -43,10 +43,10 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { ...@@ -43,10 +43,10 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
@override @override
void dispose() { void dispose() {
super.dispose();
for (final FocusNode node in childFocusNodes) { for (final FocusNode node in childFocusNodes) {
node.dispose(); node.dispose();
} }
super.dispose();
} }
void _addChild() { void _addChild() {
......
...@@ -80,9 +80,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { ...@@ -80,9 +80,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
@override @override
void dispose() { void dispose() {
super.dispose();
backdropNode.dispose(); backdropNode.dispose();
foregroundNode.dispose(); foregroundNode.dispose();
super.dispose();
} }
Widget _buildStack(BuildContext context, BoxConstraints constraints) { Widget _buildStack(BuildContext context, BoxConstraints constraints) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment