Skip to content

Commit

Permalink
Update ResponsiveFramework v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rayliverified committed Aug 26, 2024
1 parent 99f7cf2 commit b776c89
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
29 changes: 13 additions & 16 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,19 @@ class MyApp extends StatelessWidget {
builder: (context) {
String pathName =
path != '/' && path.startsWith('/') ? path.substring(1) : path;
return BouncingScrollWrapper.builder(
context,
switch (pathName) {
'/' || ListPage.name => const ListPage(),
PostPage.name =>
// 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),
Breakpoint(start: 1201, end: double.infinity, name: DESKTOP),
], child: PostPage()),
TypographyPage.name => const TypographyPage(),
_ => const SizedBox.shrink(),
},
);
return switch (pathName) {
'/' || ListPage.name => const ListPage(),
PostPage.name =>
// 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),
Breakpoint(start: 1201, end: double.infinity, name: DESKTOP),
], child: PostPage()),
TypographyPage.name => const TypographyPage(),
_ => const SizedBox.shrink(),
};
});
}
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: minimal
description: A minimalistic Flutter website template for blogs and portfolios.
version: 2.1.0
version: 2.1.1
publish_to: none

environment:
Expand All @@ -13,7 +13,7 @@ dependencies:
# responsive_framework:
# path: ../
# Uncomment to build standalone project.
responsive_framework: ^1.5.0
responsive_framework: ^1.5.1
google_fonts: ^6.2.1
animations: ^2.0.11
loading_gifs: ^0.3.0
Expand Down

0 comments on commit b776c89

Please sign in to comment.