A RenderFlex overflowed by pixels on the bottom












0















I got error debugging my flutter application on android.



The error is : A RenderFlex overflowed by 99317 pixels on the bottom.



I have notice that the error comes only when using Color.blue code, but if I erase this line of code the program runs. but I need the code to works with this.



Code:



import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: HomeScreen(),
);
}
}


class HomeScreen extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: <Widget>[
HomeScreenTopPart()
],
),
);
}
}

class HomeScreenTopPart extends StatefulWidget {
@override
_HomeScreenTopPartState createState() => _HomeScreenTopPartState();
}

class _HomeScreenTopPartState extends State<HomeScreenTopPart> {
@override
Widget build(BuildContext context) {
return Stack(
children: <Widget>[
Container(height:400.0, color: Colors.blue, )
],
);
}
}


This is the console error :



I/flutter (20722): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (20722): The following _CompileTimeError was thrown building Container(bg: BoxDecoration(color:
I/flutter (20722): MaterialColor(primary value: Color(0xff2196f3))), constraints: BoxConstraints(0.0<=w<=Infinity,
I/flutter (20722): h=400.0)):
I/flutter (20722): 'package:flutter/src/widgets/basic.dart': error: line 4799 pos 30:
I/flutter (20722): file:///C:/src/flutter/packages/flutter/lib/src/widgets/basic.dart:4799:30: Error: Getter not found:
I/flutter (20722): 'rootBundle'.
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^^^^^^^^^^
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^
I/flutter (20722):
I/flutter (20722): When the exception was thrown, this was the stack:

*************
I/flutter (20722): #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
I/flutter (20722): #126 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3710:16)
I/flutter (20722): #127 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
I/flutter (20722): #128 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33)
I/flutter (20722): #129 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:676:20)
I/flutter (20722): #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (20722): #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (20722): #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (20722): #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
Reloaded 1 of 419 libraries in 810ms.
I/flutter (20722): #135 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (20722): #136 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (20722): #137 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (20722): (elided one frame from package dart:async)
I/flutter (20722): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (20722): Another exception was thrown: A RenderFlex overflowed by 99317 pixels on the bottom.









share|improve this question




















  • 3





    I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

    – dshukertjr
    Jan 2 at 5:37











  • what version of flutter you are running please print using flutter doctor

    – Ajay Beniwal
    Jan 2 at 6:03











  • Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

    – Günter Zöchbauer
    Jan 2 at 6:46











  • I resolve this question by updating my Flutter :/ thanks you

    – user1431866
    Jan 3 at 1:27


















0















I got error debugging my flutter application on android.



The error is : A RenderFlex overflowed by 99317 pixels on the bottom.



I have notice that the error comes only when using Color.blue code, but if I erase this line of code the program runs. but I need the code to works with this.



Code:



import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: HomeScreen(),
);
}
}


class HomeScreen extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: <Widget>[
HomeScreenTopPart()
],
),
);
}
}

class HomeScreenTopPart extends StatefulWidget {
@override
_HomeScreenTopPartState createState() => _HomeScreenTopPartState();
}

class _HomeScreenTopPartState extends State<HomeScreenTopPart> {
@override
Widget build(BuildContext context) {
return Stack(
children: <Widget>[
Container(height:400.0, color: Colors.blue, )
],
);
}
}


This is the console error :



I/flutter (20722): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (20722): The following _CompileTimeError was thrown building Container(bg: BoxDecoration(color:
I/flutter (20722): MaterialColor(primary value: Color(0xff2196f3))), constraints: BoxConstraints(0.0<=w<=Infinity,
I/flutter (20722): h=400.0)):
I/flutter (20722): 'package:flutter/src/widgets/basic.dart': error: line 4799 pos 30:
I/flutter (20722): file:///C:/src/flutter/packages/flutter/lib/src/widgets/basic.dart:4799:30: Error: Getter not found:
I/flutter (20722): 'rootBundle'.
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^^^^^^^^^^
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^
I/flutter (20722):
I/flutter (20722): When the exception was thrown, this was the stack:

*************
I/flutter (20722): #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
I/flutter (20722): #126 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3710:16)
I/flutter (20722): #127 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
I/flutter (20722): #128 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33)
I/flutter (20722): #129 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:676:20)
I/flutter (20722): #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (20722): #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (20722): #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (20722): #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
Reloaded 1 of 419 libraries in 810ms.
I/flutter (20722): #135 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (20722): #136 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (20722): #137 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (20722): (elided one frame from package dart:async)
I/flutter (20722): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (20722): Another exception was thrown: A RenderFlex overflowed by 99317 pixels on the bottom.









share|improve this question




















  • 3





    I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

    – dshukertjr
    Jan 2 at 5:37











  • what version of flutter you are running please print using flutter doctor

    – Ajay Beniwal
    Jan 2 at 6:03











  • Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

    – Günter Zöchbauer
    Jan 2 at 6:46











  • I resolve this question by updating my Flutter :/ thanks you

    – user1431866
    Jan 3 at 1:27
















0












0








0








I got error debugging my flutter application on android.



The error is : A RenderFlex overflowed by 99317 pixels on the bottom.



I have notice that the error comes only when using Color.blue code, but if I erase this line of code the program runs. but I need the code to works with this.



Code:



import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: HomeScreen(),
);
}
}


class HomeScreen extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: <Widget>[
HomeScreenTopPart()
],
),
);
}
}

class HomeScreenTopPart extends StatefulWidget {
@override
_HomeScreenTopPartState createState() => _HomeScreenTopPartState();
}

class _HomeScreenTopPartState extends State<HomeScreenTopPart> {
@override
Widget build(BuildContext context) {
return Stack(
children: <Widget>[
Container(height:400.0, color: Colors.blue, )
],
);
}
}


This is the console error :



I/flutter (20722): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (20722): The following _CompileTimeError was thrown building Container(bg: BoxDecoration(color:
I/flutter (20722): MaterialColor(primary value: Color(0xff2196f3))), constraints: BoxConstraints(0.0<=w<=Infinity,
I/flutter (20722): h=400.0)):
I/flutter (20722): 'package:flutter/src/widgets/basic.dart': error: line 4799 pos 30:
I/flutter (20722): file:///C:/src/flutter/packages/flutter/lib/src/widgets/basic.dart:4799:30: Error: Getter not found:
I/flutter (20722): 'rootBundle'.
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^^^^^^^^^^
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^
I/flutter (20722):
I/flutter (20722): When the exception was thrown, this was the stack:

*************
I/flutter (20722): #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
I/flutter (20722): #126 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3710:16)
I/flutter (20722): #127 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
I/flutter (20722): #128 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33)
I/flutter (20722): #129 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:676:20)
I/flutter (20722): #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (20722): #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (20722): #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (20722): #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
Reloaded 1 of 419 libraries in 810ms.
I/flutter (20722): #135 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (20722): #136 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (20722): #137 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (20722): (elided one frame from package dart:async)
I/flutter (20722): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (20722): Another exception was thrown: A RenderFlex overflowed by 99317 pixels on the bottom.









share|improve this question
















I got error debugging my flutter application on android.



The error is : A RenderFlex overflowed by 99317 pixels on the bottom.



I have notice that the error comes only when using Color.blue code, but if I erase this line of code the program runs. but I need the code to works with this.



Code:



import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Welcome to Flutter',
home: HomeScreen(),
);
}
}


class HomeScreen extends StatelessWidget{
@override
Widget build(BuildContext context) {
return Scaffold(
body: Column(
children: <Widget>[
HomeScreenTopPart()
],
),
);
}
}

class HomeScreenTopPart extends StatefulWidget {
@override
_HomeScreenTopPartState createState() => _HomeScreenTopPartState();
}

class _HomeScreenTopPartState extends State<HomeScreenTopPart> {
@override
Widget build(BuildContext context) {
return Stack(
children: <Widget>[
Container(height:400.0, color: Colors.blue, )
],
);
}
}


This is the console error :



I/flutter (20722): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (20722): The following _CompileTimeError was thrown building Container(bg: BoxDecoration(color:
I/flutter (20722): MaterialColor(primary value: Color(0xff2196f3))), constraints: BoxConstraints(0.0<=w<=Infinity,
I/flutter (20722): h=400.0)):
I/flutter (20722): 'package:flutter/src/widgets/basic.dart': error: line 4799 pos 30:
I/flutter (20722): file:///C:/src/flutter/packages/flutter/lib/src/widgets/basic.dart:4799:30: Error: Getter not found:
I/flutter (20722): 'rootBundle'.
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^^^^^^^^^^
I/flutter (20722): return result?.bundle ?? rootBundle;
I/flutter (20722): ^
I/flutter (20722):
I/flutter (20722): When the exception was thrown, this was the stack:

*************
I/flutter (20722): #125 Element.updateChild (package:flutter/src/widgets/framework.dart:2742:15)
I/flutter (20722): #126 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3710:16)
I/flutter (20722): #127 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
I/flutter (20722): #128 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2286:33)
I/flutter (20722): #129 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:676:20)
I/flutter (20722): #130 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:219:5)
I/flutter (20722): #131 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (20722): #132 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (20722): #133 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:751:7)
Reloaded 1 of 419 libraries in 810ms.
I/flutter (20722): #135 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
I/flutter (20722): #136 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
I/flutter (20722): #137 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (20722): (elided one frame from package dart:async)
I/flutter (20722): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (20722): Another exception was thrown: A RenderFlex overflowed by 99317 pixels on the bottom.






android visual-studio-code dart flutter






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 7:31









anmol.majhail

4,6382422




4,6382422










asked Jan 2 at 5:25









user1431866user1431866

1891414




1891414








  • 3





    I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

    – dshukertjr
    Jan 2 at 5:37











  • what version of flutter you are running please print using flutter doctor

    – Ajay Beniwal
    Jan 2 at 6:03











  • Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

    – Günter Zöchbauer
    Jan 2 at 6:46











  • I resolve this question by updating my Flutter :/ thanks you

    – user1431866
    Jan 3 at 1:27
















  • 3





    I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

    – dshukertjr
    Jan 2 at 5:37











  • what version of flutter you are running please print using flutter doctor

    – Ajay Beniwal
    Jan 2 at 6:03











  • Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

    – Günter Zöchbauer
    Jan 2 at 6:46











  • I resolve this question by updating my Flutter :/ thanks you

    – user1431866
    Jan 3 at 1:27










3




3





I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

– dshukertjr
Jan 2 at 5:37





I tried your exact code and did not get any error. Try flutter upgrade and flutter clean

– dshukertjr
Jan 2 at 5:37













what version of flutter you are running please print using flutter doctor

– Ajay Beniwal
Jan 2 at 6:03





what version of flutter you are running please print using flutter doctor

– Ajay Beniwal
Jan 2 at 6:03













Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

– Günter Zöchbauer
Jan 2 at 6:46





Error: Getter not found: I/flutter (20722): 'rootBundle' is the main error, you can ignore runtime errors if you get a compilation error. Your Flutter installation seems corrupted. Try above suggestion.

– Günter Zöchbauer
Jan 2 at 6:46













I resolve this question by updating my Flutter :/ thanks you

– user1431866
Jan 3 at 1:27







I resolve this question by updating my Flutter :/ thanks you

– user1431866
Jan 3 at 1:27














0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001612%2fa-renderflex-overflowed-by-pixels-on-the-bottom%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54001612%2fa-renderflex-overflowed-by-pixels-on-the-bottom%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith