Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in 4.0.1: Failed assertion: 'gestureRecognizers != null': is not true. #343

Closed
gisinator opened this issue Mar 15, 2021 · 0 comments · Fixed by #344
Closed

issue in 4.0.1: Failed assertion: 'gestureRecognizers != null': is not true. #343

gisinator opened this issue Mar 15, 2021 · 0 comments · Fixed by #344

Comments

@gisinator
Copy link

I just tried out the new 4.0.1 version and I instantly see that beautiful red background with yellow font error message instead of my Unity container:

════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building PlatformViewLink(dirty, state: _PlatformViewLinkState#c0bb1):
'package:flutter/src/widgets/platform_view.dart': Failed assertion: line 1024 pos 15: 'gestureRecognizers != null': is not true.

The relevant error-causing widget was:
UnityWidget file:///C:/Users/XYZ/AndroidStudioProjects/flun/lib/main.dart:97:20
When the exception was thrown, this was the stack:
#2 new AndroidViewSurface (package:flutter/src/widgets/platform_view.dart:1024:15)
#3 MethodChannelUnityViewFlutter.buildView. (package:flutter_unity_widget/src/device_method.dart:135:18)
#4 _PlatformViewLinkState.build (package:flutter/src/widgets/platform_view.dart:837:40)
#5 StatefulElement.build (package:flutter/src/widgets/framework.dart:4744:28)
#6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4627:15)

As soon as I go back to 4.0.0, it perfectly works.

Windows 10
Unity 2020.1.17f
Android Studio 3.6.3
Flutter 1.22.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant