setDefaultViewBreakpoints static method
void
setDefaultViewBreakpoints({})
Enable customize default view breakpoints. To do so, just call it before runApp
.
void main() {
Implementation
// FlutterCleanArchitecture.setDefaultViewBreakpoints(
// desktopBreakpointMinimumWidth: 1000,
// tabletBreakpointMinimumWidth: 700,
// watchBreakpointMinimumWidth: 250,
// );
// runApp(MyApp());
// }
/// ```
static void setDefaultViewBreakpoints({
required double desktopBreakpointMinimumWidth,
required double tabletBreakpointMinimumWidth,
required double watchBreakpointMinimumWidth,
}) {
ResponsiveSizingConfig.instance.setCustomBreakpoints(
ScreenBreakpoints(
desktop: desktopBreakpointMinimumWidth,
tablet: tabletBreakpointMinimumWidth,
watch: watchBreakpointMinimumWidth),
);
}