I'm trying to make a little sound in a flutter app, I'm using AudioCache for it, here is part of the code:
AudioCache player = AudioCache(prefix: 'assets/');
void initState(){
super.initState();
player = AudioCache(prefix: 'assets/',fixedPlayer: AudioPlayer()..setReleaseMode(ReleaseMode.STOP));
}
then I used in other part of the code, I called like this:
player.play('prueba.mp3');
Then throws this error:
E/flutter (13057): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Unable to load asset: assets/prueba.
mp3
E/flutter (13057): #0 PlatformAssetBundle.load (package:flutter/src/services/asset_bundle.dart:225:7)
E/flutter (13057): <asynchronous suspension>
E/flutter (13057): #1 AudioCache._fetchAsset (package:audioplayers/audio_cache.dart:75:29)
E/flutter (13057): #2 AudioCache.fetchToMemory (package:audioplayers/audio_cache.dart:82:30)
E/flutter (13057): <asynchronous suspension>
E/flutter (13057): #3 AudioCache.load (package:audioplayers/audio_cache.dart:97:37)
E/flutter (13057): #4 AudioCache.getAbsoluteUrl (package:audioplayers/audio_cache.dart:192:23)
E/flutter (13057): #5 AudioCache.play (package:audioplayers/audio_cache.dart:122:24)
E/flutter (13057): #6 _Timer_Page.startNextTimer.<anonymous closure>.<anonymous closure> (package:proyecto/timerPage
.dart:99:18)
E/flutter (13057): #7 State.setState (package:flutter/src/widgets/framework.dart:1244:30)
E/flutter (13057): #8 _Timer_Page.startNextTimer.<anonymous closure> (package:proyecto/timerPage.dart:86:7)
E/flutter (13057): #9 _rootRunUnary (dart:async/zone.dart:1198:47)
E/flutter (13057): #10 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (13057): #11 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter (13057): #12 _CustomZone.bindUnaryCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1042:26)
E/flutter (13057): #13 _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter (13057): #14 _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (13057): #15 _CustomZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:1026:26)
E/flutter (13057): #16 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
E/flutter (13057): #17 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
E/flutter (13057): #18 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
E/flutter (13057):
the pubspec.yaml is like this:
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.0
flutter_picker: ^1.1.5
sqflite: ^1.3.2
audioplayers: ^0.17.0
file_picker: ^1.5.0
assets:
- assets/prueba.mp3
Pass the correct file name to play.
player.play('prueba.mp3');
Related
I am new to flutter. when I run my code , I got the error
E/flutter (16181): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: Unhandled error type '() => Future<List<Food>>' is not a subtype of type 'List<Food>' occurred in Instance of 'MenuBloc'.
E/flutter (16181): #0 MenuBloc.mapEventToState (package:restuarant_app/Bloc/menue_bloc/menu_bloc.dart:30:7)
E/flutter (16181): <asynchronous suspension>
E/flutter (16181): #1 Bloc._bindEventsToStates.<anonymous closure> (package:bloc/src/bloc.dart:232:20)
E/flutter (16181): #2 Stream.asyncExpand.onListen.<anonymous closure> (dart:async/stream.dart:579:30)
E/flutter (16181): #3 _rootRunUnary (dart:async/zone.dart:1192:38)
E/flutter (16181): #4 _CustomZone.runUnary (dart:async/zone.dart:1085:19)
E/flutter (16181): #5 _CustomZone.runUnaryGuarded (dart:async/zone.dart:987:7)
E/flutter (16181): #6 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (16181): #7 _DelayedData.perform (dart:async/stream_impl.dart:594:14)
E/flutter (16181): #8 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:710:11)
E/flutter (16181): #9 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:670:7)
E/flutter (16181): #10 _rootRun (dart:async/zone.dart:1180:38)
E/flutter (16181): #11 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter (16181): #12 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter (16181): #13 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
E/flutter (16181): #14 _rootRun (dart:async/zone.dart:1184:13)
E/flutter (16181): #15 _CustomZone.run (dart:async/zone.dart:1077:19)
E/flutter (16181): #16 _CustomZone.runGuarded (dart:async/zone.dart:979:7)
E/flutter (16181): #17 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1019:23)
E/flutter (16181): #18 _microtaskLoop (dart:async/schedule_microtask.dart:43:21)
E/flutter (16181): #19 _startMicrotaskLoop (dart:async/schedule_microtask.dart:52:5)
E/flutter (16181):
E/flutter (16181): #0 Cubit.onError.<anonymous closure> (package:bloc/src/cubit.dart:140:7)
E/flutter (16181): #1 Cubit.onError (package:bloc/src/cubit.dart:141:6)
E/flutter (16181): #2 Bloc.onError (package:bloc/src/bloc.dart:113:11)
E/flutter (16181): #3 _rootRunBinary (dart:async/zone.dart:1204:38)
E/flutter (16181): #4 _CustomZone.runBinary (dart:async/zone.dart:1093:19)
E/flutter (16181): #5 _CustomZone.runBinaryGuarded (dart:async/zone.dart:995:7)
E/flutter (16181): #6 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:358:15)
E/flutter (16181): #7 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:376:16)
E/flutter (16181): #8 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:275:7)
E/flutter (16181): #9 _SyncBroadcastStreamController._sendError.<anonymous closure> (dart:async/broadcast_stream_controller.dart:393:20)
E/flutter (16181): #10 _BroadcastStreamController._forEachListener (dart:async/broadcast_stream_controller.dart:327:15)
E/flutter (16181): #11 _SyncBroadcastStreamController._sendError (dart:async/broadcast_stream_controller.dart:392:5)
E/flutter (16181): #12 _BroadcastStreamController._addError (dart:async/broadcast_stream_controller.dart:294:5)
E/flutter (16181): #13 _rootRunBinary (dart:async/zone.dart:1204:38)
E/flutter (16181): #14 _CustomZone.runBinary (dart:async/zone.dart:1093:19)
E/flutter (16181): #15 _CustomZone.runBinaryGuarded (dart:async/zone.dart:995:7)
E/flutter (16181): #16 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:358:15)
E/flutter (16181): #17 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:376:16)
E/flutter (16181): #18 _BufferingStreamSubscription._addError (dart:async/stream_impl.dart:275:7)
E/flutter (16181): #19 _ForwardingStreamSubscription._addError (dart:async/stream_pipe.dart:139:11)
E/flutter (16181): #20 _ForwardingStream._handleError (dart:async/stream_pipe.dart:104:10)
E/flutter (16181): #21 _ForwardingStreamSubscription._handleError (dart:async/stream_pipe.dart:170:13)
E/flutter (16181): #22 _rootRunBinary (dart:async/zone.dart:1204:38)
E/flutter (16181): #23 _CustomZone.runBinary (dart:async/zone.dart:1093:19)
E/flutter (16181): #24 _CustomZone.runBinaryGuarded (dart:async/zone.dart:995:7)
E/flutter (16181): #25 _BufferingStreamSubscription._sendError.sendError (dart:async/stream_impl.dart:358:15)
E/flutter (16181): #26 _BufferingStreamSubscription._sendError (dart:async/stream_impl.dart:376:16)
E/flutter (16181): #27 _DelayedError.perform (dart:async/stream_impl.dart:605:14)
E/flutter (16181): #28 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:710:11)
E/flutter (16181): #29 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:670:7)
E/flutter (16181): #30 _rootRun (dart:async/zone.dart:1180:38)
E/flutter (16181): #31 _C
I would like to get data from remote server.I use bloc library in my code.
This is part of menue_bloc.dart .I got error on line allFood= await _foodRepositiry.getAllFood() ;.
class MenuBloc extends Bloc<FoodEvent, MenuState> {
final _foodRepositiry = FoodRepository();
Map<String, List<Food>> mapFoodList;
MenuBloc({this.mapFoodList=const{}}) : super(InitialMenuState());
#override
// TODO: implement initialState
MenuState get initialState => InitialMenuState();
#override
Stream<MenuState> mapEventToState(FoodEvent event) async* {
print("loading....");
yield Loading();
if (event is GetAllFoodEvent) {
print("Get all food....");
this.mapFoodList = {};
List<Food> allFood;
allFood= await _foodRepositiry.getAllFood() ;
try {
print("in menu bloc...... ");
allFood.forEach((food) {
print(food.toString());
if (!this.mapFoodList.containsKey(food.category)) {
this.mapFoodList[food.category.toString()] = [];
}
this.mapFoodList[food.category].add(food);
});
yield Loaded(mapFoodList: this.mapFoodList);
} catch (e, stacktrace) {
print(e.toString());
print(stacktrace.toString());
When I change List<Food> allFood;to Future<List<Food>> allFood; it gives me following error
I/flutter (16181): type '() => Future<List<Food>>' is not a subtype of type 'Future<List<Food>>'
This FoodRepository code.
class FoodRepository{
final foodDao=new FoodDao();
final foodApiClient =new FoodApiClient();
Future getAllFood() async{
if(await checkInternetConnection()) {
print("fetch data from remote server");
return foodApiClient.fetchAllFood;
}else{
print("from db");
return foodDao.getAllFood();
}
}
}
This is FoodApiClient code:
class FoodApiClient{
static const baseUrl = '10.0.2.2';
final http.Client httpClient;
FoodApiClient({this.httpClient});
Future<List<Food>> fetchAllFood()async{
String url=":8080/resturant/food/allFood";
// print(url);
List<Food> foodList;
print(url);
final allFoodResponse=await httpClient.get(baseUrl+url);
print(allFoodResponse);
if (allFoodResponse.statusCode != 200) {
throw Exception('An error occured while loading food list!!! status code: '+allFoodResponse.statusCode.toString());
}
print("foodJson");
List foodJson = json.decode(allFoodResponse.body);
print(foodJson);
//foodJson.forEach((food) {foodList.add(Food.fromJson(food)); });
foodList=foodJson.map((f)=>Food.fromJson(f)).toList();
return foodList;
}
}
Future getAllFood() async{
needs to be
Future<List<Food>> getAllFood() async {
and then you need to follow the compiler errors from there, because there are a lot more instances that I cannot all name and describe here.
I strongly advise you to use proper dart formatting, and the package pedantic to tell you all about your code and how to improve it if you cannot find those places yourself.
The ad loads and is shown successfully the first time but throws an exception if called again.
This is the code snippet for where an interstitial ad is made -
InterstitialAd createInterstitialAd() {
return InterstitialAd(
adUnitId: InterstitialAd.testAdUnitId,
targetingInfo: targetingInfo,
listener: (MobileAdEvent event) {
print("InterstitialAd event $event");
},
);
}
This is the code snippet for where it is called -
if (!(await interstitialAd.isLoaded()))
interstitialAd = createInterstitialAd()..load();
interstitialAd.show();
interstitialAd?.dispose();
interstitialAd = createInterstitialAd()..load();
Error body -
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(no_ad_for_id, isAdLoaded failed, no add exists for id=444270692, null)
E/flutter (19241): #0 StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:569
E/flutter (19241): #1 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:156
E/flutter (19241): <asynchronous suspension>
E/flutter (19241): #2 MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:329
E/flutter (19241): #3 _invokeBooleanMethod
package:firebase_admob/firebase_admob.dart:611
E/flutter (19241): #4 MobileAd.isLoaded
package:firebase_admob/firebase_admob.dart:255
E/flutter (19241): #5 buildConsumer.<anonymous closure>.<anonymous closure>
package:compactimg/widgets/select_image_button.dart:56
E/flutter (19241): <asynchronous suspension>
E/flutter (19241): #6 buildConsumer.<anonymous closure>.<anonymous closure> (package:compactimg/widgets/select_image_button.dart)
E/flutter (19241): #7 _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:779
E/flutter (19241): #8 _InkResponseState.build.<anonymous closure>
package:flutter/…/material/ink_well.dart:862
E/flutter (19241): #9 GestureRecognizer.invokeCallback
package:flutter/…/gestures/recognizer.dart:182
E/flutter (19241): #10 TapGestureRecognizer.handleTapUp
package:flutter/…/gestures/tap.dart:504
E/flutter (19241): #11 BaseTapGestureRecognizer._checkUp
package:flutter/…/gestures/tap.dart:282
E/flutter (19241): #12 BaseTapGestureRecognizer.handlePrimaryPointer
package:flutter/…/gestures/tap.dart:217
E/flutter (19241): #13 PrimaryPointerGestureRecognizer.handleEvent
package:flutter/…/gestures/recognizer.dart:475
E/flutter (19241): #14 PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:76
E/flutter (19241): #15 PointerRouter._dispatchEventToRoutes.<anonymous closure>
package:flutter/…/gestures/pointer_router.dart:122
E/flutter (19241): #16 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379:8)
E/flutter (19241): #17 PointerRouter._dispatchEventToRoutes
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");
I wanted to use google play services in my flutter application for which i used games_services plugin. I followed all the steps in this medium post. But it still gave me this error.
E/flutter (27643): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, 4: 4: , null)
E/flutter (27643): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569)
E/flutter (27643): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321)
E/flutter (27643): <asynchronous suspension>
E/flutter (27643): #2 GamesServices.signIn (package:games_services/games_services.dart:52)
E/flutter (27643): #3 _WelcomePageState.build.<anonymous closure> (package:quizbee/pages/home/welcome.dart:182)
E/flutter (27643): #4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:706)
E/flutter (27643): #5 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:789)
E/flutter (27643): #6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182)
E/flutter (27643): #7 TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:486)
E/flutter (27643): #8 BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:282)
E/flutter (27643): #9 BaseTapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:199)
E/flutter (27643): #10 PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:467)
E/flutter (27643): #11 PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:76)
E/flutter (27643): #12 PointerRouter._dispatchEventToRoutes.<anonymous closure> (package:flutter/src/gestures/pointer_router.dart:117)
E/flutter (27643): #13 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:379)
E/flutter (27643): #14 PointerRouter._dispatchEventToRoutes (package:flutter/src/gestures/pointer_router.dart:115)
E/flutter (27643): #15 PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101)
E/flutter (27643): #16 GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218)
E/flutter (27643): #17 GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198)
E/flutter (27643): #18 GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156)
E/flutter (27643): #19 GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102)
E/flutter (27643): #20 GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86)
E/flutter (27643): #21 _rootRunUnary (dart:async/zone.dart:1138)
E/flutter (27643): #22 _CustomZone.runUnary (dart:async/zone.dart:1031)
E/flutter (27643): #23 _CustomZone.runUnaryGuarded (dart:async/zone.dart:933)
E/flutter (27643): #24 _invoke1 (dart:ui/hooks.dart:273)
E/flutter (27643): #25 _dispatchPointerDataPacket (dart:ui/hooks.dart:182)
Thank You in advance.
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)