Skip to content

Commit b776c89

Browse files
committed
Update ResponsiveFramework v1.5.1
1 parent 99f7cf2 commit b776c89

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

lib/main.dart

+13-16
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,19 @@ class MyApp extends StatelessWidget {
5858
builder: (context) {
5959
String pathName =
6060
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+
};
7774
});
7875
}
7976
}

pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: minimal
22
description: A minimalistic Flutter website template for blogs and portfolios.
3-
version: 2.1.0
3+
version: 2.1.1
44
publish_to: none
55

66
environment:
@@ -13,7 +13,7 @@ dependencies:
1313
# responsive_framework:
1414
# path: ../
1515
# Uncomment to build standalone project.
16-
responsive_framework: ^1.5.0
16+
responsive_framework: ^1.5.1
1717
google_fonts: ^6.2.1
1818
animations: ^2.0.11
1919
loading_gifs: ^0.3.0

0 commit comments

Comments
 (0)