Skip to content

An app showcasing Flutter components, with side-by-side source code view.

License

Notifications You must be signed in to change notification settings

devashish123-rgb/flutter_catalog

Repository files navigation

Flutter Catalog

Get it on Google Play

An app showcasing Flutter components, with side-by-side source code view.

Screenshots

drawer preview code view doc action

Adding a new example page

  1. Create a dart file under lib/route/ (or just duplicate a file, e.g. cp widgets_icon_ex.dart new_example.dart);
  2. In the new file, create a class that extends MyRoute;
  3. Add const constructor, the convention is to use the file path as constructor's default parameter;
  4. (Optional) override getters: title, description, links;
  5. Override buildMyRouteContent(), try to make the code simple, as it'll be shown on phone screens;
  6. Open lib/my_app_meta.dart, import the new file at the beginning of file;
  7. In kMyAppRoutesStructure, add an instantiation of the new class under the appropriate item group.

Credits

This app is written with reference to many resources, including:

About

An app showcasing Flutter components, with side-by-side source code view.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 94.6%
  • CMake 2.1%
  • Ruby 1.1%
  • Go 0.7%
  • C++ 0.6%
  • Objective-C 0.3%
  • Other 0.6%