-
Notifications
You must be signed in to change notification settings - Fork 24
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
Not compatible with flutter 3.19 #46
Comments
When we can get the update version which fix this issue? |
Following |
@emanuel-braz Please kindly fix this bug. |
when this will be fixed? |
I encountered the same error when deploying a new app bundle using |
Hello guys, I got a PR #45 |
i got same issue using flutter version 3.19.1
` OneContext not initiated! please use builder method. MaterialApp( If you already set the OneContext().builder early, maybe you are probably trying to use some methods that will only be available after the first MaterialApp build. If you need to use any of these OneContext methods before defining the MaterialApp, a safe way is to check if the OneContext context has already been initialized. if (OneContext.hasContext) {OneContext().showDialog (...);} ` Any help with this problem? |
I'm having a similar problem as in the comment above: |
I need to check this out, because that generic argument was removed in version 4.0.0.
For now can you run |
I have tested it, and the example project is working well, probably there is some cache. If |
so i use auto route for my project and it use MaterialApp.router() instead of MaterialApp my code is looking like this `import 'package:auto_route/auto_route.dart'; void main() async { //init firebase instance WidgetsFlutterBinding.ensureInitialized(); runApp(ProviderScope(child: MyApp())); class MyApp extends StatelessWidget { MyApp({super.key}); @OverRide is using auto_route make one context error because using MaterialApp.router instead MaterialApp? |
@Bakti17
|
@duy-ntt |
I figure it the problem is when you define MaterialApp that wrapped by builder from another package it will cause an error |
NOTE: Assert is there for a reason, removing it is just a temporary dev solution
|
Tried to run it today, but bug still persists, any updates on it? |
Have you tried OneContextWidget?
|
Tried with OneNotification, OneContext().key, and OneContextWidget, none working, same message
Edit: |
We need update I tried to build with latest flutter I'm getting the following error :
(Note: I have tried both Latest and Prerelease version)
my environment:
sdk: ">=2.14.4 <3.0.0"
JDK : 17.0.10
Kotlin : 1.9.22
gradle : 8.6
com.android.application : 8.2.2**
The text was updated successfully, but these errors were encountered: