@@ -61,7 +61,7 @@ class ResponsiveWrapper extends StatefulWidget {
6161 /// active when the [TargetPlatform] is Android, iOS, or Fuchsia.
6262 /// To enable landscape breakpoints on other platforms, pass a custom
6363 /// list of supported platforms to [landscapePlatforms] .
64- final List <ResponsiveBreakpoint >? landscapeBreakpoints ;
64+ final List <ResponsiveBreakpoint >? breakpointsLandscape ;
6565
6666 /// Override list of platforms to enable landscape mode on.
6767 /// By default, only mobile platforms support landscape mode.
@@ -102,7 +102,7 @@ class ResponsiveWrapper extends StatefulWidget {
102102 Key ? key,
103103 required this .child,
104104 this .breakpoints,
105- this .landscapeBreakpoints ,
105+ this .breakpointsLandscape ,
106106 this .landscapePlatforms,
107107 this .minWidth = 450 ,
108108 this .maxWidth,
@@ -139,7 +139,7 @@ class ResponsiveWrapper extends StatefulWidget {
139139 return ResponsiveWrapper (
140140 child: child,
141141 breakpoints: breakpoints,
142- landscapeBreakpoints : landscapeBreakpoints,
142+ breakpointsLandscape : landscapeBreakpoints,
143143 landscapePlatforms: landscapePlatforms,
144144 minWidth: minWidth,
145145 maxWidth: maxWidth,
@@ -455,8 +455,8 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
455455 // If the device is landscape enabled and the current orientation is landscape, use landscape breakpoints.
456456 if (orientation == Orientation .landscape &&
457457 isLandscapePlatform &&
458- widget.landscapeBreakpoints != null ) {
459- return widget.landscapeBreakpoints ?? [];
458+ widget.breakpointsLandscape != null ) {
459+ return widget.breakpointsLandscape ?? [];
460460 }
461461
462462 return widget.breakpoints ?? [];
@@ -492,6 +492,9 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
492492 breakpointSegments.clear ();
493493 breakpoints.addAll (getActiveBreakpoints ());
494494 breakpointSegments.addAll (calcBreakpointSegments (breakpoints));
495+ print ('Breakpoints: ${(widget .landscapePlatforms ?? _landscapePlatforms )}' );
496+ print ('Theme: ${Theme .of (context ).platform }' );
497+ print (breakpointSegments);
495498 }
496499
497500 @override
@@ -507,9 +510,9 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
507510 calcBreakpointSegments (defaultBreakpoints);
508511 ResponsiveUtils .debugLogBreakpointSegments (defaultBreakpointSegments);
509512 // Print landscape breakpoints.
510- if (widget.landscapeBreakpoints != null ) {
513+ if (widget.breakpointsLandscape != null ) {
511514 List <ResponsiveBreakpoint > landscapeBreakpoints =
512- widget.landscapeBreakpoints ?? [];
515+ widget.breakpointsLandscape ?? [];
513516 List <ResponsiveBreakpointSegment > landscapeBreakpointSegments =
514517 calcBreakpointSegments (landscapeBreakpoints);
515518 ResponsiveUtils .debugLogBreakpointSegments (landscapeBreakpointSegments);
@@ -535,6 +538,7 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
535538 @override
536539 void didChangeMetrics () {
537540 super .didChangeMetrics ();
541+ print ('didChangeMetrics ${windowWidth }' );
538542 setBreakpoints ();
539543 // When physical dimensions change, update state.
540544 // The required MediaQueryData is only available
0 commit comments