Skip to content

Commit

Permalink
Update Examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rayliverified committed Aug 26, 2024
1 parent 271bad3 commit 5bf0222
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ class MyApp extends StatelessWidget {
switch (pathName) {
'/' || ListPage.name => const ListPage(),
PostPage.name =>
// Custom "per-page" breakpoints.
// Breakpoints can be nested.
// Here's an example of custom "per-page" breakpoints.
const ResponsiveBreakpoints(breakpoints: [
Breakpoint(start: 0, end: 480, name: MOBILE),
Breakpoint(start: 481, end: 1200, name: TABLET),
Expand Down
8 changes: 4 additions & 4 deletions lib/main_advanced.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class MyApp extends StatelessWidget {
const Condition.equals(name: MOBILE, value: 450),
const Condition.between(
start: 800, end: 1100, value: 800),
const Condition.between(
start: 1000, end: 1200, value: 1000),
// There are no conditions for width over 1200
// because the `maxWidth` is set to 1200 via the MaxWidthBox.
Condition.between(
start: 1000,
end: double.maxFinite.toInt(),
value: 1000),
]).value,
child: child!),
child: BouncingScrollWrapper.builder(
Expand Down

0 comments on commit 5bf0222

Please sign in to comment.