Closed SirBarksALot closed 11 months ago
For anyone with the same issue. ResponsiveBreakpoints.builder and any ResponsiveFramework
widget cannot be in the same build
method. They have to be separated.
The solution was to take
ResponsiveScaledBox(
width: ResponsiveValue<double>(
context,
conditionalValues: [
Condition.equals(name: MOBILE, value: 450),
],
).value,
child: child,
)
To a separate widget/function.
Error:
I'm trying to migrate to 1.1.1, I just want to scale from 0 to 450 and resize when above 450, it worked perfectly on 0.2.0, but I cannot get it to work on 1.1.1 despite following the migration guide.
0.2.0 code:
1.1.1 code: