Comments (4)
same problem ..
have you found any solution?
from bmi-calculator-flutter.
Yes, this solution https://stackoverflow.com/a/56327933 worked for me, and not only the content overflow error disappeared, the resulting screen expands to match the new orientation so it also looks good.
In each page of your app, cut your Column(...),
code and paste it inside the following block of code.
LayoutBuilder(
builder: (context, constraint) {
return SingleChildScrollView(
child: ConstrainedBox(
constraints: BoxConstraints(minHeight: constraint.maxHeight),
child: IntrinsicHeight(
child: // <=== the Column(...), code comes here
),
),
);
},
),
I tested it in both the Android emulator and the iPhone simulator. Please confirm it also works for you.
I wish Flutter already had a simpler widget for this task, maybe it does but I couldn't find one. But, hey, we may always create our own widget as Angela taught us.
from bmi-calculator-flutter.
For completeness, this is how your Scaffold should look with the above changes:
Scaffold(
appBar: AppBar(
title: Text('BMI CALCULATOR'),
),
body: LayoutBuilder(...),
);
from bmi-calculator-flutter.
Yes, this solution https://stackoverflow.com/a/56327933 worked for me, and not only the content overflow error disappeared, the resulting screen expands to match the new orientation so it also looks good.
In each page of your app, cut yourColumn(...),
code and paste it inside the following block of code.LayoutBuilder( builder: (context, constraint) { return SingleChildScrollView( child: ConstrainedBox( constraints: BoxConstraints(minHeight: constraint.maxHeight), child: IntrinsicHeight( child: // <=== the Column(...), code comes here ), ), ); }, ),
I tested it in both the Android emulator and the iPhone simulator. Please confirm it also works for you.
I wish Flutter already had a simpler widget for this task, maybe it does but I couldn't find one. But, hey, we may always create our own widget as Angela taught us.
Yeah man, that works!! Thank you.
from bmi-calculator-flutter.
Related Issues (19)
- G
- App icon HOT 2
- bad config in git/config
- Marked as Objective-C HOT 3
- What to do when using Named Routes? HOT 1
- Section 12 Code Shown by Instructor will not work when Null Safety is enabled. HOT 3
- Can't assign argument type Function HOT 1
- deprecated version of the Android embedding HOT 3
- Font awesome icons are not showing inside widget
- No option in Android Studio [Latest Version] to Remove widget using ALT+Enter HOT 2
- constants hint HOT 1
- Bottom overflowed by 99885 pixels HOT 3
- setState() or markNeedsBuild() called during build.
- overflow in weight and age card HOT 1
- setState() or markNeedsBuild() called during build. HOT 1
- primaryColor: Doesnt Work HOT 3
- error: 2 positional argument(s) expected, but 1 found. HOT 1
- body1 is depreciated. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmi-calculator-flutter.