@@ -149,10 +149,10 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
149149 activeBreakpoint = getActiveBreakpoint (windowWidth);
150150 // Check if screenWidth exceeds maxWidth.
151151 if (widget.maxWidth != null ) if (windowWidth > widget.maxWidth) {
152- // Check if there is an active breakpoint with scale set to true.
152+ // Check if there is an active breakpoint with autoScale set to true.
153153 if (activeBreakpoint != null &&
154154 activeBreakpoint.breakpoint > widget.maxWidth &&
155- activeBreakpoint.scale ) {
155+ activeBreakpoint.autoScale ) {
156156 return widget.maxWidth + (windowWidth - activeBreakpoint.breakpoint);
157157 } else {
158158 // Max Width reached. Return Max Width because no breakpoint is active.
@@ -168,10 +168,10 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
168168 double getScreenHeight () {
169169 // Check if screenWidth exceeds maxWidth.
170170 if (widget.maxWidth != null ) if (windowWidth > widget.maxWidth) {
171- // Check if there is an active breakpoint with scale set to true.
171+ // Check if there is an active breakpoint with autoScale set to true.
172172 if (activeBreakpoint != null &&
173173 activeBreakpoint.breakpoint > widget.maxWidth &&
174- activeBreakpoint.scale ) {
174+ activeBreakpoint.autoScale ) {
175175 // Scale screen height by the amount the width was scaled.
176176 return windowHeight / (screenWidth / widget.maxWidth);
177177 }
@@ -205,7 +205,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
205205 return widget.minWidth / widget.defaultScaleFactor;
206206 }
207207 // If widget should resize, use screenWidth.
208- if (activeBreakpoint.scale == false )
208+ if (activeBreakpoint.autoScale == false )
209209 return screenWidth / activeBreakpoint.scaleFactor;
210210
211211 // Screen is larger than max width. Scale from max width.
@@ -244,7 +244,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
244244 widget.defaultScaleFactor;
245245 }
246246 // If widget should resize, use screenHeight.
247- if (activeBreakpoint.scale == false )
247+ if (activeBreakpoint.autoScale == false )
248248 return screenHeight / activeBreakpoint.scaleFactor;
249249
250250 // Screen is larger than max width. Calculate height
@@ -263,7 +263,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
263263 }
264264
265265 double get activeScaleFactor {
266- if (activeBreakpoint != null && activeBreakpoint.scale == true )
266+ if (activeBreakpoint != null && activeBreakpoint.autoScale == true )
267267 return activeBreakpoint.scaleFactor;
268268
269269 return widget.defaultScaleFactor;
@@ -524,13 +524,13 @@ class InheritedResponsiveWrapper extends InheritedWidget {
524524@immutable
525525class ResponsiveBreakpoint {
526526 final int breakpoint;
527- final bool scale ;
527+ final bool autoScale ;
528528 final double scaleFactor;
529529 final String name;
530530
531531 const ResponsiveBreakpoint (
532532 {@required this .breakpoint,
533- this .scale = false ,
533+ this .autoScale = false ,
534534 this .scaleFactor = 1 ,
535535 this .name})
536536 : assert (breakpoint != null );
@@ -540,8 +540,8 @@ class ResponsiveBreakpoint {
540540 "ResponsiveBreakpoint(" +
541541 "Breakpoint: " +
542542 breakpoint.toString () +
543- ", Scale : " +
544- scale .toString () +
543+ ", AutoScale : " +
544+ autoScale .toString () +
545545 ", Scale Factor: " +
546546 scaleFactor.toString () +
547547 ", Name: " +
0 commit comments