File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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) /
You can’t perform that action at this time.
0 commit comments