Skip to content

Commit

Permalink
v1.1.0 Release
Browse files Browse the repository at this point in the history
- Breaking Change - Condition is no longer constant to support inheriting type nullability.
- Simplify example.
  • Loading branch information
rayliverified committed Jun 15, 2023
1 parent 3324581 commit c8f6a74
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.0
- Breaking Change - Responsive Value Condition is no longer constant to support inheriting type nullability.
- Simplify example.

## 1.0.0
- New ResponsiveBreakpoints widget.
- Deprecated ResponsiveWrapper widget.
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@ ResponsiveBreakpoints.of(context).isPhone;
ResponsiveBreakpoints.of(context).equals(DESKTOP)
ResponsiveBreakpoints.of(context).largerThan(MOBILE)
ResponsiveBreakpoints.of(context).smallerThan(TABLET)
ResponsiveBreakpoints.of(context).between(MOBILE, TABLET)
...
```

### Customization
You can define your own breakpoint labels and use them in your conditionals.

For example, if we're building a Material 3 Navigation Rail and want to expand the menu to full width once there is enough room, we can add a custom `EXPAND_SIDE_PANEL` breakpoint.
For example, if you're building a Material 3 Navigation Rail and want to expand the menu to full width once there is enough room, you can add a custom `EXPAND_SIDE_PANEL` breakpoint.

```dart
breakpoints: [
Expand All @@ -90,14 +91,16 @@ breakpoints: [
]
```

Then, in our code, set the value based on the breakpoint condition.
Then, in your code, set the value based on the breakpoint condition.

> expand: ResponsiveBreakpoints.of(context).largerThan('EXPAND_SIDE_PANEL')
### Responsive Framework Widgets
The ResponsiveFramework includes a few custom widgets that supplement Flutter's responsive capabilities. They are showcased in the demo projects.
The ResponsiveFramework includes a few custom widgets that supplement Flutter's responsive capabilities. Their usages are showcased in the demo projects.

- *[ResponsiveValue](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_value.dart)*
- *[ResponsiveVisibility](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_value.dart)*
- *[ResponsiveConstraints](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_value.dart)*
- *[ResponsiveRowColumn](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_row_column.dart)*
- *[ResponsiveGridView](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_grid.dart)*
- *[ResponsiveScaledBox](https://github.com/Codelessly/ResponsiveFramework/blob/master/lib/responsive_scaled_box.dart)*
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: responsive_framework
description: Easily make Flutter apps responsive. Automatically adapt UI to different screen sizes. Responsiveness made simple.
version: 1.0.0
version: 1.1.0
homepage: https://codelessly.com
repository: https://github.com/Codelessly/ResponsiveFramework
issue_tracker: https://github.com/Codelessly/ResponsiveFramework/issues
documentation: https://github.com/Codelessly/ResponsiveFramework

environment:
sdk: '>=2.17.0 <3.0.0'
flutter: '>=3.0.0'
sdk: '>=3.0.0 <4.0.0'
flutter: '>=3.7.0'

dependencies:
flutter:
Expand Down

0 comments on commit c8f6a74

Please sign in to comment.