material-components-flutter-adaptive
material-components-flutter-adaptive copied to clipboard
Better adaptaion of Material Design
Disclaimer: you may find some of the changes here opinionated, but I find them necessary to give more flexibility in usage.
- Add path property to
AdaptiveScaffoldDestinationfor simpler usage with routing. - Add
AdaptiveNavigationScaffold.of(context)method to provide its state to descendants. - Add
appBarBuilderto build different AppBars depending onNavigationType. - Add
navigationRailTrailingandpermanentDrawerFooter. - Make the drawer scrollable (closes #35).
FABnow can be insidepermanentDrawerand is controlled byfabInPermanentDrawerproperty.- Add
railDestinationsOverflowproperty. - Add
showVerticalDividerto make theVerticalDividerbetweenbodyandNavigationRail/permanentDraweroptional (closes #56). - Menu/Back button is now moved inside
NavigationRailfrom theAppBarto be perfectly aligned withNavigationRailDestinations(closes #2). - Make
floatingActionButtontypeWidgetnotFloatingActionButtonas it is in theScaffold(closes #44). - Add
AdaptiveFloatingActionButton. This widget should be used to have an expanded FAB inside the permanent drawer. - Update examples, and use Material 3 theming.
- Update dependencies (close #55).
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thank you for your contribution. I'm really glad you're excited about Flutter! Unfortunately your patch does not currently meet our quality bar because it makes too many unrelated changes, and is missing CHANGELOG entries.
I suggest breaking this up in 2-3 PRs, separating adding functionality from breaking changes like replacing functionality. Please don't hesitate to submit a new PR at https://github.com/material-foundation/flutter-packages if you have the time. Thanks!