mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix npe.
This commit is contained in:
parent
3a73fd631c
commit
e2fdc2e7ea
@ -98,7 +98,9 @@ class Mimic extends GlobalKeyWatcher {
|
||||
void _setMimicable(widget) {
|
||||
if (_mimicable != widget) {
|
||||
_stopMimic();
|
||||
widget.startMimic();
|
||||
if (widget != null) {
|
||||
widget.startMimic();
|
||||
}
|
||||
}
|
||||
setState(() {
|
||||
_mimicable = widget;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user