-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Efra Espada edited this page May 3, 2023
·
3 revisions
Include this configuration in your pubspec.yaml
.
dependencies:
catalog: ^0.0.1 # android ios linux macos web windows
catalog:
base: "lib" # app src
output: "ui/catalog" # catalog path -> /lib/ui/catalog/
pageFile: "catalog_component.dart" # catalog page file
pageName: "CatalogComponent" # catalog page class
pageRoute: "catalog" # catalog route -> /catalog
runtimeConfigHolder: "assets/preview_config.json"
suffix: "preview" # file suffix for preview files -> my_widget.preview.dart
-
base
: The src path of your Flutter project. Defaultlib
. -
output
: The path where your catalog will be created or updated. In this exampleui/catalog
produces/lib/ui/catalog/
. -
pageFile
: The file name of your catalog page. -
pageName
: The class name of your catalog page. -
pageRoute
: The catalog's route. -
suffix
: Suffix used for identify preview files.