Skip to content

Commit 92c26c6

Browse files
committed
Min Width Scale #3
*Scale Min Width from Min Width.
1 parent 6ca265b commit 92c26c6

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/responsive_framework.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,6 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
201201
// If widget should resize, use default screenWidth.
202202
if (widget.defaultScale == false)
203203
return screenWidth / widget.defaultScaleFactor;
204-
// If widget should scale, scale down from the smallest breakpoint.
205-
if ((widget?.breakpoints?.length ?? 0) > 0) {
206-
return widget.breakpoints.last.breakpoint / widget.defaultScaleFactor;
207-
}
208204
// Scale using default minWidth.
209205
return widget.minWidth / widget.defaultScaleFactor;
210206
}
@@ -242,14 +238,6 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
242238
// If widget should resize, use default screenHeight.
243239
if (widget.defaultScale == false)
244240
return screenHeight / widget.defaultScaleFactor;
245-
// If widget should scale, calculate scaled height from
246-
// the smallest breakpoint.
247-
if ((widget?.breakpoints?.length ?? 0) > 0) {
248-
// Scale height with width scale and scale factor applied.
249-
return screenHeight /
250-
(screenWidth / widget.breakpoints.last.breakpoint) /
251-
widget.defaultScaleFactor;
252-
}
253241
// Scale using default minWidth.
254242
return screenHeight /
255243
(screenWidth / widget.minWidth) /

0 commit comments

Comments
 (0)