@@ -59,26 +59,26 @@ class MyApp extends StatelessWidget {
5959 String pathName =
6060 path != '/' && path.startsWith ('/' ) ? path.substring (1 ) : path;
6161 return BouncingScrollWrapper .builder (
62- context,
63- MaxWidthBox (
64- // A widget that limits the maximum width.
65- // This is used to create a gutter area on either side of the content.
66- maxWidth: 1200 ,
67- background: Container (color: const Color (0xFFF5F5F5 )),
68- child: switch (pathName) {
69- '/' || ListPage .name => const ListPage (),
70- PostPage .name =>
71- // Custom "per-page" breakpoints.
72- const ResponsiveBreakpoints (breakpoints: [
73- Breakpoint (start: 0 , end: 480 , name: MOBILE ),
74- Breakpoint (start: 481 , end: 1200 , name: TABLET ),
75- Breakpoint (
76- start: 1201 , end: double .infinity, name: DESKTOP ),
77- ], child: PostPage ()),
78- TypographyPage .name => const TypographyPage (),
79- _ => const SizedBox .shrink (),
80- }),
81- dragWithMouse : true );
62+ context,
63+ MaxWidthBox (
64+ // A widget that limits the maximum width.
65+ // This is used to create a gutter area on either side of the content.
66+ maxWidth: 1200 ,
67+ background: Container (color: const Color (0xFFF5F5F5 )),
68+ child: switch (pathName) {
69+ '/' || ListPage .name => const ListPage (),
70+ PostPage .name =>
71+ // Custom "per-page" breakpoints.
72+ const ResponsiveBreakpoints (breakpoints: [
73+ Breakpoint (start: 0 , end: 480 , name: MOBILE ),
74+ Breakpoint (start: 481 , end: 1200 , name: TABLET ),
75+ Breakpoint (
76+ start: 1201 , end: double .infinity, name: DESKTOP ),
77+ ], child: PostPage ()),
78+ TypographyPage .name => const TypographyPage (),
79+ _ => const SizedBox .shrink (),
80+ }),
81+ );
8282 });
8383 }
8484}
0 commit comments