@@ -107,11 +107,11 @@ class ResponsiveWrapper extends StatefulWidget {
107107 if (nullOk) return null ;
108108 throw FlutterError .fromParts (< DiagnosticsNode > [
109109 ErrorSummary (
110- " ResponsiveWrapper.of() called with a context that does not contain a ResponsiveWrapper." ),
110+ ' ResponsiveWrapper.of() called with a context that does not contain a ResponsiveWrapper.' ),
111111 ErrorDescription (
112- " No Responsive ancestor could be found starting from the context that was passed "
113- " to ResponsiveWrapper.of(). Place a ResponsiveWrapper at the root of the app "
114- " or supply a ResponsiveWrapper.builder." ),
112+ ' No Responsive ancestor could be found starting from the context that was passed '
113+ ' to ResponsiveWrapper.of(). Place a ResponsiveWrapper at the root of the app '
114+ ' or supply a ResponsiveWrapper.builder.' ),
115115 context.describeElement ('The context used was' )
116116 ]);
117117 }
@@ -343,13 +343,13 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
343343 ? SizedBox .shrink ()
344344 : InheritedResponsiveWrapper (
345345 data: ResponsiveWrapperData .fromResponsiveWrapper (this ),
346- child: MediaQuery (
347- data : calculateMediaQueryData () ,
348- child : Stack (
349- alignment : Alignment .topCenter ,
350- children : [
351- widget.background ?? Container (),
352- SizedBox (
346+ child: Stack (
347+ alignment : Alignment .topCenter ,
348+ children : [
349+ widget.background ?? Container () ,
350+ MediaQuery (
351+ data : calculateMediaQueryData (),
352+ child : SizedBox (
353353 width: screenWidth,
354354 child: FittedBox (
355355 fit: BoxFit .fitWidth,
@@ -362,8 +362,8 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
362362 ),
363363 ),
364364 ),
365- ] ,
366- ) ,
365+ ) ,
366+ ] ,
367367 ),
368368 );
369369 }
@@ -388,10 +388,10 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
388388}
389389
390390// Device Type Constants.
391- const String MOBILE = " MOBILE" ;
392- const String TABLET = " TABLET" ;
393- const String PHONE = " PHONE" ;
394- const String DESKTOP = " DESKTOP" ;
391+ const String MOBILE = ' MOBILE' ;
392+ const String TABLET = ' TABLET' ;
393+ const String PHONE = ' PHONE' ;
394+ const String DESKTOP = ' DESKTOP' ;
395395
396396/// Responsive data about the current screen.
397397///
@@ -446,28 +446,28 @@ class ResponsiveWrapperData {
446446
447447 @override
448448 String toString () =>
449- " ResponsiveWrapperData(" +
450- " screenWidth: " +
449+ ' ResponsiveWrapperData(' +
450+ ' screenWidth: ' +
451451 screenWidth? .toString () +
452- " , screenHeight: " +
452+ ' , screenHeight: ' +
453453 screenHeight? .toString () +
454- " , scaledWidth: " +
454+ ' , scaledWidth: ' +
455455 scaledWidth? .toString () +
456- " , scaledHeight: " +
456+ ' , scaledHeight: ' +
457457 scaledHeight? .toString () +
458- " , breakpoints: " +
458+ ' , breakpoints: ' +
459459 breakpoints? .asMap ().toString () +
460- " , activeBreakpoint: " +
460+ ' , activeBreakpoint: ' +
461461 activeBreakpoint.toString () +
462- " , isMobile: " +
462+ ' , isMobile: ' +
463463 isMobile? .toString () +
464- " , isPhone: " +
464+ ' , isPhone: ' +
465465 isPhone? .toString () +
466- " , isTablet: " +
466+ ' , isTablet: ' +
467467 isTablet? .toString () +
468- " , isDesktop: " +
468+ ' , isDesktop: ' +
469469 isDesktop? .toString () +
470- ")" ;
470+ ')' ;
471471
472472 bool equals (String breakpointName) =>
473473 activeBreakpoint.name != null && activeBreakpoint.name == breakpointName;
@@ -540,14 +540,14 @@ class ResponsiveBreakpoint {
540540
541541 @override
542542 String toString () =>
543- " ResponsiveBreakpoint(" +
544- " breakpoint: " +
543+ ' ResponsiveBreakpoint(' +
544+ ' breakpoint: ' +
545545 breakpoint.toString () +
546- " , autoScale: " +
546+ ' , autoScale: ' +
547547 autoScale.toString () +
548- " , scaleFactor: " +
548+ ' , scaleFactor: ' +
549549 scaleFactor.toString () +
550- " , name: " +
550+ ' , name: ' +
551551 name.toString () +
552- ")" ;
552+ ')' ;
553553}
0 commit comments