-
Fork this repository.
-
[IMPORTANT] Enable actions by going to
Actions
->I understand my workflows, go ahead and enable them
. -
Clone the forked repository.
git clone https://github.com/<your-username>/flutter-meetup-berlin.git
-
Open the project in VSCode.
code flutter-meetup-berlin
-
Bootstrap App
flutter pub get # Install deps flutter gen-l10n # Generate localization files
-
Bootstrap Widgetbook
cd widgetbook/ flutter pub get # Install deps dart run build_runner watch -d # Watch for generator changes
-
Run Widgetbook from VSCode (to enable hot reload)
- Add the missing
PrimaryButton
use-case.
-
Sign up to Widgetbook Cloud.
-
Create a new workspace.
-
Create a new project by importing your forked repository.
-
Get the API key from the project's settings.
-
Add the API key to your repository's secrets as
WIDGETBOOK_CLOUD_API_KEY
by going toSettings
->Secrets and Variables
->Actions
->New repository secret
. -
Commit the new use-case to the repository's
main
branch.git add . git commit -m "feat(widgetbook): add button use-case" git push -u origin main
-
Fix the button radius, to match the design.
-
Commit your changes on a new branch.
git checkout -b fix/increase-button-radius git add . git commit -m "fix: increase button radius" git push -u origin fix/increase-button-radius
-
Create a new pull request.
-
Wait for CI to finish, then check the Widgetbook Cloud status checks.