mirror of
https://github.com/flutter/flutter
synced 2024-08-27 12:00:58 +00:00
fix(FocusScope): Example fix (#98668)
This commit is contained in:
parent
cb09fa239b
commit
bce6622a20
|
@ -43,10 +43,10 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
for (final FocusNode node in childFocusNodes) {
|
||||
node.dispose();
|
||||
}
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
void _addChild() {
|
||||
|
|
|
@ -80,9 +80,9 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
|
|||
|
||||
@override
|
||||
void dispose() {
|
||||
super.dispose();
|
||||
backdropNode.dispose();
|
||||
foregroundNode.dispose();
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
Widget _buildStack(BuildContext context, BoxConstraints constraints) {
|
||||
|
|
Loading…
Reference in a new issue