Comments (4)
Your responsive value doesn't cover all screen widths. So if the device is between 450 and 800, it returns a null value.
Either provide a default value ResponsiveValue(defaultValue: 450), or set conditions that cover all possible screen widths.
ResponsiveValue<double>(
context,
conditionalValues: [
Condition.equals(name: MOBILE, value: 450),
Condition.between(start: 800, end: 1100, value: 800),
Condition.between(start: 1000, end: 1200, value: 1000),
],
).value
from responsiveframework.
Thank you for reporting the issue and providing the sample code. Good issue!
from responsiveframework.
Conditions are set in builder in MaterialApp. Same as yours.
from responsiveframework.
Related Issues (20)
- App Broken after upgrading to v1.1.0 HOT 2
- 1.x migration documentation blocking Dart 3/ Flutter 3.10+ upgrades HOT 5
- Deprecated ResponsiveWrapper widget. - replaced with what? HOT 1
- onGenerateRoute + Nylo HOT 1
- Breakpoint value is null on initial build HOT 6
- nonexistent breakpoint on migration from 0.2.0 -> 1.1.1 HOT 1
- Condition on ResponsiveVisibility requires a value in v1 HOT 2
- When breakpointsLandscape is defined, it will always ignore breakpoints. HOT 1
- [Feature Request]
- [BUGS] Button in ResponsiveRowColumnItem cannot expanded HOT 2
- ResponsiveScaledBox in showDialog does not work properly
- Can we use the new version with GetX package?
- Error when using ReorderableListView inside ResponsiveScaledBox ( v1.1.1 and below) HOT 3
- User finger resize
- Font getting squeezed on iPhone 11 with iOS 16.0
- GoogleMap marker's tap area is misplaced on the web
- ResponsiveWrapper is not working HOT 3
- ResponsiveVisibility error HOT 2
- withNoTextScaling not working in letest version HOT 4
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 responsiveframework.