Skip to content

Commit cefd2cb

Browse files
committed
Update ReadMe Breakpoint Label
- Update label behavior accuracy.
1 parent 31b690a commit cefd2cb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ For example, if we're building a Material 3 Navigation Rail and want to expand t
8383
breakpoints: [
8484
...
8585
const Breakpoint(start: 801, end: 1920, name: DESKTOP),
86-
const Breakpoint(start: 900, end: double.infinity, name: 'EXPAND_SIDE_PANEL') <- Custom behavior Range.
86+
const Breakpoint(start: 900, end: 900, name: 'EXPAND_SIDE_PANEL') <- Custom label.
8787
const Breakpoint(start: 1921, end: double.infinity, name: '4K'),
8888
...
8989
]
9090
```
9191

92-
Then, in our code, set the value based on if the breakpoint is active.
92+
Then, in our code, set the value based on the breakpoint condition.
9393

94-
> expand: ResponsiveBreakpoints.of(context).equals('EXPAND_SIDE_PANEL')
94+
> expand: ResponsiveBreakpoints.of(context).isLargerThan('EXPAND_SIDE_PANEL')
9595

9696
### Responsive Framework Widgets
9797
The ResponsiveFramework includes a few custom widgets that to supplement Flutter's responsive capabilities. They are showcased in the demo projects.

0 commit comments

Comments
 (0)