Material Design components showcase for Flutter apps.
This project is based on Ataul's Material Design Components Showcase Android project, but for Flutter!
You can use this Flutter package to preview your
ThemeData and see how it looks like with different Material Widgets.
MaterialShowcase Widget somewhere in your app:
MaterialApp( title: 'Flutter Demo', theme: ThemeData( primarySwatch: Colors.blue, ), home: Scaffold( body: ListView( children: <Widget>[ MaterialShowcase(), ], ), ), );
Then play with the different parameters in
ThemeData and see how it looks like.
- Additions to the
MaterialShowcaseWidget are welcome.
- Documentation improvements are welcome.
MIT License Copyright (c) 2019 Miguel Beltran
Miguel Beltran - beltran.work
[1.0.1] - Fixed warning
- Fixed reported warning with Flutter 1.12
[1.0.0+4] - Example README.md
- Updated README.md for example app
[1.0.0+2] - Formatting and description
- flutter_material_showcase.dart formatting
- Added longer package description
[1.0.0+1] - README.md changes
- Updated README.md
[1.0.0] - First release
- Initial release
Example for flutter_material_showcase #
Run the project contained in
example to check this package.
You can edit the contained
ThemeData to try different cases:
theme: ThemeData( brightness: brightness, primarySwatch: Colors.blue, ),
Also, use the action on the top-right of the screen to switch between light and dark themes, and see how your app reacts to it.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: flutter_material_showcase: ^1.0.1
2. Install it
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Feb 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.1
- pana: 0.13.5
- Flutter: 1.12.13+hotfix.7