-
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
'_overlay != null' error #8
Comments
@genius1212 |
i modified here, |
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
/// child should be [MaterialApp] or [CupertinoApp].
/// make sure that loading can be displayed in front of all other widgets
return FlutterEasyLoading(
child: MaterialApp(
title: 'Flutter EasyLoading',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(title: 'Flutter EasyLoading'),
),
);
}
} Do you have use |
no use |
try it here is example https://github.com/huangjianke/flutter_easyloading/blob/master/example/lib/main.dart |
It works, thank you! |
The problem still exists, |
@huangjianke [VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: 'package:flutter/src/widgets/overlay.dart': Failed assertion: line 132 pos 12: '_overlay != null': is not true. |
i will check it soon |
@genius1212 hi, the bug is fixed, thanks for your feedback dependencies:
flutter_easyloading: ^1.1.3 |
That’s great! |
you need put in main builder: EasyLoading.init();
|
use EasyLoading.show(status: "loading..."); Error!
error stack:
[VERBOSE-2:ui_dart_state.cc(157)] Unhandled Exception: 'package:flutter/src/widgets/overlay.dart': Failed assertion: line 132 pos 12: '_overlay != null': is not true.
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:42:39)
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:38:5)
#2 OverlayEntry.remove (package:flutter/src/widgets/overlay.dart:132:12)
#3 EasyLoading._remove (package:flutter_easyloading/src/easy_loading.dart:353:34)
#4 EasyLoading._show (package:flutter_easyloading/src/easy_loading.dart:323:5)
#5 EasyLoading.show (package:flutter_easyloading/src/easy_loading.dart:165:20)
#6 OrderAction.getOrderDetail (package:novo/action/order_action.dart:156:17)
#7 _OrderDetailState.initState (package:novo/page/order/order_detail.dart:66:19)
#8 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4640:58)
#9 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4476:5)
#10 Element.inflat<…>
this place:
void _remove() {
_getInstance().overlayEntry?.remove();
_getInstance()._overlayEntry = null;
_getInstance()._key = null;
_getInstance()._progress = null;
_getInstance()._progressKey = null;
}
The text was updated successfully, but these errors were encountered: