Skip to content

Commit 5bf0222

Browse files
committed
Update Examples
1 parent 271bad3 commit 5bf0222

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lib/main.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ class MyApp extends StatelessWidget {
6363
switch (pathName) {
6464
'/' || ListPage.name => const ListPage(),
6565
PostPage.name =>
66-
// Custom "per-page" breakpoints.
66+
// Breakpoints can be nested.
67+
// Here's an example of custom "per-page" breakpoints.
6768
const ResponsiveBreakpoints(breakpoints: [
6869
Breakpoint(start: 0, end: 480, name: MOBILE),
6970
Breakpoint(start: 481, end: 1200, name: TABLET),

lib/main_advanced.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ class MyApp extends StatelessWidget {
5252
const Condition.equals(name: MOBILE, value: 450),
5353
const Condition.between(
5454
start: 800, end: 1100, value: 800),
55-
const Condition.between(
56-
start: 1000, end: 1200, value: 1000),
57-
// There are no conditions for width over 1200
58-
// because the `maxWidth` is set to 1200 via the MaxWidthBox.
55+
Condition.between(
56+
start: 1000,
57+
end: double.maxFinite.toInt(),
58+
value: 1000),
5959
]).value,
6060
child: child!),
6161
child: BouncingScrollWrapper.builder(

0 commit comments

Comments
 (0)