-
Notifications
You must be signed in to change notification settings - Fork 222
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
'package:flutter/src/widgets/overlay.dart': Failed assertion: line 552 pos 15: 'textDirection != null': is not true. #68
Comments
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter EasyLoading',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter EasyLoading'),
builder: EasyLoading.init(),
);
}
} |
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════ Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. The relevant error-causing widget was: |
set MaterialApp as root widget, not FlutterEasyLoading |
The following assertion was thrown building Overlay(state: OverlayState#b90aa(entries[OverlayEntry#fa568(opaque: false; maintainState: false), OverlayEntry#83b08(opaque: false; maintainState: false)])):
'package:flutter/src/widgets/overlay.dart': Failed assertion: line 552 pos 15: 'textDirection != null': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md
The relevant error-causing widget was:
Overlay file:///Users/qlinksoftware/Documents/FlutterSdk/flutter/.pubcache/hosted/pub.dartlang.org/flutter_easyloading-1.3.0/lib/src/widgets/loading.dart:38:14
When the exception was thrown, this was the stack:
#2 new _RenderTheatre (package:flutter/src/widgets/overlay.dart:552:15)
#3 _Theatre.createRenderObject (package:flutter/src/widgets/overlay.dart:509:12)
#4 RenderObjectElement.mount (package:flutter/src/widgets/framework.dart:5491:28)
#5 MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6232:11)
.... Normal element mounting (67 frames)
═════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: