@@ -58,22 +58,19 @@ class MyApp extends StatelessWidget {
58
58
builder: (context) {
59
59
String pathName =
60
60
path != '/' && path.startsWith ('/' ) ? path.substring (1 ) : path;
61
- return BouncingScrollWrapper .builder (
62
- context,
63
- switch (pathName) {
64
- '/' || ListPage .name => const ListPage (),
65
- PostPage .name =>
66
- // Breakpoints can be nested.
67
- // Here's an example of custom "per-page" breakpoints.
68
- const ResponsiveBreakpoints (breakpoints: [
69
- Breakpoint (start: 0 , end: 480 , name: MOBILE ),
70
- Breakpoint (start: 481 , end: 1200 , name: TABLET ),
71
- Breakpoint (start: 1201 , end: double .infinity, name: DESKTOP ),
72
- ], child: PostPage ()),
73
- TypographyPage .name => const TypographyPage (),
74
- _ => const SizedBox .shrink (),
75
- },
76
- );
61
+ return switch (pathName) {
62
+ '/' || ListPage .name => const ListPage (),
63
+ PostPage .name =>
64
+ // Breakpoints can be nested.
65
+ // Here's an example of custom "per-page" breakpoints.
66
+ const ResponsiveBreakpoints (breakpoints: [
67
+ Breakpoint (start: 0 , end: 480 , name: MOBILE ),
68
+ Breakpoint (start: 481 , end: 1200 , name: TABLET ),
69
+ Breakpoint (start: 1201 , end: double .infinity, name: DESKTOP ),
70
+ ], child: PostPage ()),
71
+ TypographyPage .name => const TypographyPage (),
72
+ _ => const SizedBox .shrink (),
73
+ };
77
74
});
78
75
}
79
76
}
0 commit comments