Skip to content

Commit da40c83

Browse files
committed
Debug Log Labels
- Add debug log portrait and landscape labels.
1 parent 5102952 commit da40c83

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/responsive_wrapper.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,13 +560,18 @@ class _ResponsiveWrapperState extends State<ResponsiveWrapper>
560560
List<ResponsiveBreakpoint> defaultBreakpoints = widget.breakpoints ?? [];
561561
List<ResponsiveBreakpointSegment> defaultBreakpointSegments =
562562
calcBreakpointSegments(defaultBreakpoints);
563+
// Add Portrait and Landscape annotations if landscape breakpoints are provided.
564+
if (widget.breakpointsLandscape != null) {
565+
print('**PORTRAIT**');
566+
}
563567
ResponsiveUtils.debugLogBreakpointSegments(defaultBreakpointSegments);
564568
// Print landscape breakpoints.
565569
if (widget.breakpointsLandscape != null) {
566570
List<ResponsiveBreakpoint> landscapeBreakpoints =
567571
widget.breakpointsLandscape ?? [];
568572
List<ResponsiveBreakpointSegment> landscapeBreakpointSegments =
569573
calcBreakpointSegments(landscapeBreakpoints);
574+
print('**LANDSCAPE**');
570575
ResponsiveUtils.debugLogBreakpointSegments(landscapeBreakpointSegments);
571576
}
572577
}

0 commit comments

Comments
 (0)