diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2fe1c09..5010e56 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,10 +35,9 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest - # If you want to change the directory to run commands - # defaults: - # run: - # working-directory: ./sub-folder + defaults: + run: + working-directory: ./example steps: - name: Checkout uses: actions/checkout@v3 @@ -55,7 +54,7 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: 'build/web' + path: 'example/build/web' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/README.md b/README.md index ccadfa3..19f17fc 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ -# View Model X - -[![](https://img.shields.io/pub/v/view_model_x.svg?color=success&label=pub.dev&logo=dart&logoColor=0099ff)](https://pub.dev/packages/view_model_x) +

+ Bloc +

+

+ View Model X +

+

+ + pub.dev + +

An Android similar state management package which helps to implement MVVM pattern easily. @@ -226,7 +234,7 @@ OR context.vm() ``` -## Builder, Listener, and Consumer Flutter Widgets +## Builder, Listener, and Consumer Flutter Widgets ### StateFlowBuilder @@ -244,8 +252,8 @@ StateFlowBuilder( ### Binding with context `stateFlowObject.bind(BuildContext)` -We can use `bind` with any `StateFlow` which observe the value change and update the ui. -This is similar to Provider's `context.watch()`. +We can use `bind` with any `StateFlow` which observe the value change and update the ui. +This is similar to Provider's `context.watch()`. ```dart final value = context.vm().myStateFlow.bind(context); ```