How to handle dispatch after object dispose in flutter_bloc package? - flutter

I am using flutter_bloc & bloc package to manage state.
In child page i am initialize bloc & while back parent page dispose the bloc object.
When i comes back immediately on parent page that time bloc throw error Unhandled Exception: Bad state: Cannot add new events after calling close because on child page on load i am calling api in bloc. which trigger state after completed api. At that time already bloc object disposed.
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: Bad state: Cannot add new events after calling close
E/flutter (17290): #0 _BroadcastStreamController.add (dart:async/broadcast_stream_controller.dart:249:24)
E/flutter (17290): #1 Subject._add (package:rxdart/src/subjects/subject.dart:124:16)
E/flutter (17290): #2 Subject.add (package:rxdart/src/subjects/subject.dart:118:5)
E/flutter (17290): #3 Bloc._bindStateSubject.<anonymous closure> (package:bloc/src/bloc.dart:90:23)
E/flutter (17290): #4 Stream.forEach.<anonymous closure>.<anonymous closure> (dart:async/stream.dart:814:45)
E/flutter (17290): #5 _runUserCode (dart:async/stream_pipe.dart:11:23)
E/flutter (17290): #6 Stream.forEach.<anonymous closure> (dart:async/stream.dart:814:11)
E/flutter (17290): #7 _rootRunUnary (dart:async/zone.dart:1132:38)
E/flutter (17290): #8 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (17290): #9 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (17290): #10 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
E/flutter (17290): #11 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
E/flutter (17290): #12 _SyncBroadcastStreamController._sendData (dart:async/broadcast_stream_controller.dart:375:20)
E/flutter (17290): #13 _BroadcastStreamController._add (dart:async/broadcast_stream_controller.dart:287:5)
E/flutter (17290): #14 _rootRunUnary (dart:async/zone.dart:1132:38)
E/flutter (17290): #15 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (17290): #16 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (17290): #17 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
E/flutter (17290): #18 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
E/flutter (17290): #19 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:132:11)
E/flutter (17290): #20 _ForwardingStream._handleData (dart:async/stream_pipe.dart:98:10)
E/flutter (17290): #21 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
E/flutter (17290): #22 _rootRunUnary (dart:async/zone.dart:1132:38)
E/flutter (17290): #23 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
E/flutter (17290): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
E/flutter (17290): #25 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
E/flutter (17290): #26 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter (17290): #27 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:707:11)
E/flutter (17290): #28 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:667:7)
E/flutter (17290): #29 _rootRun (dart:async/zone.dart:1120:38)
E/flutter (17290): #30 _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (17290): #31 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (17290): #32 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
E/flutter (17290): #33 _rootRun (dart:async/zone.dart:1124:13)
E/flutter (17290): #34 _CustomZone.run (dart:async/zone.dart:1021:19)
E/flutter (17290): #35 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
E/flutter (17290): #36 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
E/flutter (17290): #37 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
E/flutter (17290): #38 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
So how handle these when bloc already disposed ?

Use common bloc for parent and child.
Create/Initialise bloc in parent when calling child do as following:
`BlocProvider.value( value: BlocProvider.of<BlocA>(context), child: ScreenA(), );`
By writing above you will keep alive the bloc from dispose,
Then you can simply access bloc in child as following:
BlocProvider.of<BlocA>(context)
Just don't dispose it in child,
And then, when you go back to parent from child your bloc won't get disposed and it will only dispose when parent destroy or dispose.
Everything is written there in readme:
https://pub.dev/packages/flutter_bloc

Related

flutter showing Unhandled Exception: FormatException: Filter error, bad data error

when I am trying to make an HTTP request in flutter I am receiving these errors on a particular API and I am unable to figure out what it means and how to resolve this error is it API is working properly in postman and browser
> E/flutter (15337): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: FormatException: Filter error, bad data
E/flutter (15337): #0 _FilterImpl.processed (dart:io-patch/filter_patch.dart:11:32)
E/flutter (15337): #1 _FilterSink.addSlice (dart:io/data_transformer.dart:537:29)
E/flutter (15337): #2 _FilterSink.add (dart:io/data_transformer.dart:521:5)
E/flutter (15337): #3 _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:72:18)
E/flutter (15337): #4 _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
E/flutter (15337): #5 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (15337): #6 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (15337): #7 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (15337): #8 CastStreamSubscription._onData (dart:_internal/async_cast.dart:85:11)
E/flutter (15337): #9 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (15337): #10 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (15337): #11 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (15337): #12 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (15337): #13 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (15337): #14 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
E/flutter (15337): #15 _HandleErrorStream._handleData (dart:async/stream_pipe.dart:256:10)
E/flutter (15337): #16 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
E/flutter (15337): #17 _rootRunUnary (dart:async/zone.dart:1362:47)
E/flutter (15337): #18 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (15337): #19 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (15337): #20 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341:11)
E/flutter (15337): #21 _DelayedData.perform (dart:async/stream_impl.dart:591:14)
E/flutter (15337): #22 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:706:11)
E/flutter (15337): #23 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:663:7)
E/flutter (15337): #24 _rootRun (dart:async/zone.dart:1346:47)
E/flutter (15337): #25 _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (15337): #26 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (15337): #27 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (15337): #28 _rootRun (dart:async/zone.dart:1354:13)
E/flutter (15337): #29 _CustomZone.run (dart:async/zone.dart:1258:19)
E/flutter (15337): #30 _CustomZone.runGuarded (dart:async/zone.dart:1162:7)
E/flutter (15337): #31 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1202:23)
E/flutter (15337): #32 _microtaskLoop (dart:async/schedule_microtask.dart:40:21)
E/flutter (15337): #33 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
E/flutter (15337):
I have tried adding other API which is am using in my application and code is working properly but for it is giving above exception and stops after HTTP call.
Future<Null> getNewHomeData() async {
setState(() {
loading = true;
});
final response = await http.get(Uri.parse(Uri.encodeFull(APIs.url_HomePage)));
print(response.statusCode);
print(response.body);
try {
print(response.body);
if(response.statusCode == 200){
final home = homeNewFromJson(response.body);
homeBanner = home.advImg;
homeContent = home.infoText;
shopCat = home.shopCat;
storeImg = home.storeImg;
topSellings = home.topSellings;
modularFurniture = home.modularFurniture;
decorFurniture = home.decorFurniture;
banner1 = home.banner1;
banner2 = home.banner2;
banner3 = home.banner3;
banner4 = home.banner4;
banner5 = home.banner5;
}
} on Exception catch (e) {
print(e);
}

image upload using http multipart. if image is null then getting error

on tap submit subbmit method call .
[1]: https://i.stack.imgur.com/glYah.png
error :
successful
E/flutter (11575): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The method 'readAsBytesSync' was called on null.
E/flutter (11575): Receiver: null
E/flutter (11575): Tried calling: readAsBytesSync()
E/flutter (11575): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
E/flutter (11575): #1 _Delivery_DetailsState.submitForm (package:shop_me/src/screens/product_delivery/ui/delivery_detail.dart:500:37)
E/flutter (11575): #2 _Delivery_DetailsState.build. (package:shop_me/src/screens/product_delivery/ui/delivery_detail.dart:384:33)
E/flutter (11575): #3 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:989:21)
E/flutter (11575): #4 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (11575): #5 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:607:11)
E/flutter (11575): #6 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
E/flutter (11575): #7 BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:267:7)
E/flutter (11575): #8 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
E/flutter (11575): #9 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:443:20)
E/flutter (11575): #10 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:419:22)
E/flutter (11575): #11 RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:287:11)
E/flutter (11575): #12 GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:374:7)
E/flutter (11575): #13 GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (11575): #14 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (11575): #15 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (11575): #16 _rootRunUnary (dart:async/zone.dart:1370:13)
E/flutter (11575): #17 _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (11575): #18 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (11575): #19 _invoke1 (dart:ui/hooks.dart:182:10)
E/flutter (11575): #20 PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:282:7)
E/flutter (11575): #21 _dispatchPointerDataPacket (dart:ui/hooks.dart:96:31)
E/flutter (11575):

Not able to login with a Google email in Flutter

I'm trying to login in Flutter and this is the error I'm getting when I try to login with a Google email:
E/flutter (26329): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method '[]' was called on null.
`enter code here`E/flutter (26329): Receiver: null
E/flutter (26329): Tried calling: []("email")
E/flutter (26329): #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
E/flutter (26329): #1 DocumentSnapshot.[] (package:cloud_firestore/src/document_snapshot.dart:29:42)
E/flutter (26329): #2 new User.fromDocument (package:buddiesgram/models/user.dart:23:17)
E/flutter (26329): #3 _HomePageState.saveUserInfoFirestore (package:buddiesgram/pages/HomePage.dart:83:26)
E/flutter (26329): <asynchronous suspension>
E/flutter (26329): #4 _HomePageState.controlSignIn (package:buddiesgram/pages/HomePage.dart:54:13)
E/flutter (26329): #5 _HomePageState.initState.<anonymous closure> (package:buddiesgram/pages/HomePage.dart:40:9)
E/flutter (26329): #6 _rootRunUnary (dart:async/zone.dart:1192:38)
E/flutter (26329): #7 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
E/flutter (26329): #8 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
E/flutter (26329): #9 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (26329): #10 _DelayedData.perform (dart:async/stream_impl.dart:594:14)
E/flutter (26329): #11 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:710:11)
E/flutter (26329): #12 _PendingEvents.schedule.<anonymous closure> *emphasized text*(dart:async/stream_impl.dart:670:7)
E/flutter (26329): #13 _rootRun (dart:async/zone.dart:1180:38)
E/flutter (26329): #14 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter (26329): #15 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter (26329): #16 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)`**`*enter code here*`**`
E/flutter (26329): #17 _rootRun (dart:async/zone.dart:1184:13)
E/flutter (26329): #18 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter (26329): #19 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter (26329): #20 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
E/flutter (26329): #21 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter (26329): #22 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
E/flutter (26329):
What am I missing?
Please include a code snippet of what you are trying to do
In my understanding of your stackTrace you are trying to call list on a null object like this:
final UserData userData = someObjectHere;
function login(UserData userData){
//The problem is that userData might be null which causes your issue
String email = userData[]("Email");
}
You're solution might be to use null aware operators or to manually check whether the object you're calling a method on is not null.
String email = userData?.[]("Email");
or
if(userData != null) String email = userData?.[]("Email");

Unhandled Exception: RangeError (index): Index out of range: index should be less than

I am having a problem when trying to save a pdf using the "pdf_dart" library.
I assume the problem is linked to the image I'm downloading from the internet to try to attach to the pdf but I'm not sure what it is.
CODE
import 'dart:io';
import 'package:app_formulario/models/Customer.dart';
import 'package:path_provider/path_provider.dart';
import 'package:pdf/pdf.dart' as pdfDart;
import 'package:pdf/widgets.dart';
import 'package:image/image.dart' as imageDart;
import 'package:flutter/material.dart' as materialDart;
import 'package:http/http.dart' as http;
class PDFBloc {
PDFBloc() {
final Document pdf = Document();
http
.get(
"https://clsp.com.br/wp-content/uploads/2018/05/logo-clsp-500px.png")
.then((onValue) {
final image = pdfDart.PdfImage(
pdf.document,
image: onValue.bodyBytes,
width: 300,
height: 150,
);
pdf.addPage(Page(build: (Context context) {
return Center(
child: Image(image),
); // Center
}));
criarPDF(pdf);
});
}
void criarPDF(Document pdf) async {
Directory appDocDir = await getApplicationDocumentsDirectory();
String appDocPath = appDocDir.path;
appDocPath = "/storage/emulated/0/Android/data/com.rwrd.app_formulario";
final File file = File('$appDocPath/example.pdf');
file.writeAsBytesSync(pdf.save());
}
The error happens right when I am going to save the pdf with the image, that is, apparently the image is downloaded normally, however when inserting it in the pdf and trying to save it, the error is caused.
I don't know if the way I'm saving is the correct one, maybe that's it, but unfortunately I can't access the file folder without going all the way through it.
The error stack
E/flutter (18670): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: RangeError (index): Index out of range: index should be less than 6307: 6308
E/flutter (18670): #0 Uint8List.[] (dart:typed_data-patch/typed_data_patch.dart:2209:7)
E/flutter (18670): #1 PdfImage._prepare
package:pdf/src/image.dart:183
E/flutter (18670): #2 PdfObject._write
package:pdf/src/object.dart:53
E/flutter (18670): #3 PdfOutput.write
package:pdf/src/output.dart:69
E/flutter (18670): #4 SetMixin.forEach (dart:collection/set.dart:148:30)
E/flutter (18670): #5 PdfDocument._write
package:pdf/src/document.dart:168
E/flutter (18670): #6 PdfDocument.save
package:pdf/src/document.dart:176
E/flutter (18670): #7 Document.save
package:pdf/widgets/document.dart:71
E/flutter (18670): #8 PDFBloc.criarPDF
package:app_formulario/blocs/pdfBloc.dart:53
E/flutter (18670): <asynchronous suspension>
E/flutter (18670): #9 new PDFBloc.<anonymous closure>
package:app_formulario/blocs/pdfBloc.dart:35
E/flutter (18670): #10 _rootRunUnary (dart:async/zone.dart:1134:38)
E/flutter (18670): #11 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (18670): #12 _FutureListener.handleValue (dart:async/future_impl.dart:139:18)
E/flutter (18670): #13 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:680:45)
E/flutter (18670): #14 Future._propagateToListeners (dart:async/future_impl.dart:709:32)
E/flutter (18670): #15 Future._completeWithValue (dart:async/future_impl.dart:524:5)
E/flutter (18670): #16 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:32:15)
E/flutter (18670): #17 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:290:13)
E/flutter (18670): #18 _withClient (package:http/http.dart)
E/flutter (18670): <asynchronous suspension>
E/flutter (18670): #19 get
package:http/http.dart:46
E/flutter (18670): #20 new PDFBloc
package:app_formulario/blocs/pdfBloc.dart:18
E/flutter (18670): #21 FormBloc._recoverCustomerInformations
package:app_formulario/blocs/formBloc.dart:37
E/flutter (18670): #22 _rootRunUnary (dart:async/zone.dart:1134:38)
E/flutter (18670): #23 _CustomZone.runUnary (dart:async/zone.dart:1031:19)
E/flutter (18670): #24 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933:7)
E/flutter (18670): #25 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:338:11)
E/flutter (18670): #26 _DelayedData.perform (dart:async/stream_impl.dart:593:14)
E/flutter (18670): #27 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:709:11)
E/flutter (18670): #28 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:669:7)
E/flutter (18670): #29 _rootRun (dart:async/zone.dart:1122:38)
E/flutter (18670): #30 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (18670): #31 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (18670): #32 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
E/flutter (18670): #33 _rootRun (dart:async/zone.dart:1126:13)
E/flutter (18670): #34 _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (18670): #35 _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (18670): #36 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:965:23)
E/flutter (18670): #37 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter (18670): #38 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
E/flutter (18670):
change pdf image widget to this,
final image = pdfDart.PdfImage.jpeg(
pdf.document,
image: onValue.bodyBytes,
);
now, your image should appear in the pdf but you will have to resize your image if you want to fix height and width.

flutter: webview runs fine when app installed via usb, but not when installed over google play

My app uses a webview to show my terms and conditions. I make use of the "webview_flutter" package to do that. When I install my app via "flutter run --release", everything works fine and my website is perfectly loaded. When I submit my app to google play in production mode, I get an error when trying to open my webview. Any idea what could cause that error?
I double checked pretty much everything. Error occurs only when installed on my Android devices via google play, but everything works fine when installed via USB cable.
WebView(initialUrl: 'https://xyz.abc/terms')
Expected: Webview should load
Error instead:
[ERROR:flutter/lib/ui/ui_dart_state.cc(148)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'int ja
va.lang.Integer.intValue()' on a null object reference, null)
E/flutter (31498): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564)
E/flutter (31498): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316)
E/flutter (31498): <asynchronous suspension>
E/flutter (31498): #2 AndroidViewController._create (package:flutter/src/services/platform_views.dart:639)
E/flutter (31498): <asynchronous suspension>
E/flutter (31498): #3 AndroidViewController.setSize (package:flutter/src/services/platform_views.dart:556)
E/flutter (31498): <asynchronous suspension>
E/flutter (31498): #4 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:189)
E/flutter (31498): <asynchronous suspension>
E/flutter (31498): #5 RenderAndroidView.performResize (package:flutter/src/rendering/platform_view.dart:170)
E/flutter (31498): #6 RenderObject.layout (package:flutter/src/rendering/object.dart:1604)
E/flutter (31498): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy
_box.dart:105)
E/flutter (31498): #8 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #9 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:805)
E/flutter (31498): #10 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #11 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206)
E/flutter (31498): #12 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #13 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy
_box.dart:105)
E/flutter (31498): #14 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #15 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:259)
E/flutter (31498): #16 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #17 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:206)
E/flutter (31498): #18 RenderObject.layout (package:flutter/src/rendering/object.dart:1619)
E/flutter (31498): #19 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:510)
E/flutter (31498): #20 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1496)
E/flutter (31498): #21 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:765)
E/flutter (31498): #22 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&Rendere
rBinding.drawFrame (package:flutter/src/rendering/binding.dart:346)
E/flutter (31498): #23 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&Rendere
rBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:701)
E/flutter (31498): #24 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&Rendere
rBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:285)
E/flutter (31498): #25 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/sr
c/scheduler/binding.dart:1016)
E/flutter (31498): #26 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/sch
eduler/binding.dart:958)
E/flutter (31498): #27 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/sc
heduler/binding.dart:874)
E/flutter (31498): #28 _rootRun (dart:async/zone.dart:1124)
E/flutter (31498): #29 _CustomZone.run (dart:async/zone.dart:1021)
E/flutter (31498): #30 _CustomZone.runGuarded (dart:async/zone.dart:923)
E/flutter (31498): #31 _invoke (dart:ui/hooks.dart:236)
E/flutter (31498): #32 _drawFrame (dart:ui/hooks.dart:194)