-
Notifications
You must be signed in to change notification settings - Fork 0
Build & Run
Efra Espada edited this page May 3, 2023
·
8 revisions
Once your previews are ready, build your catalog page.
flutter pub run catalog:build && dart format lib/* lib
|
|-- ui
|
|-- catalog
|
|-- catalog_component.dart <-- catalog created
|
|-- sized
| |
| |-- container
| | |
| | |-- sized_container.dart <-- widget page created
| |
| |-- sized_preview_page_dummy.dart
|
|-- images
|
|-- gsImage
| |
| |-- gsImage.dart <-- widget page created
|
|-- images_preview_page_dummy.dart
Notice the catalog creation path is defined in
pubspec.yaml(in this sample /lib/ui/catalog/)
Notice the catalog-page creation path is defined in
@Previewandpubspec.yaml(in this sample /catalog/sized/container)
final router = GoRouter(
routes: [
// ... other routes
// add the catalog route in debug mode (can be run in release, but it is not recommended)
if (kDebugMode) CatalogComponent.route,
],
);Notice
CatalogComponentclass name is defined inpubspec.yaml