Skip to content

Commit

Permalink
Fixed deploy.
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham16g committed Nov 3, 2024
1 parent 88e5a22 commit 52f9170
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
<p align="center">
<img src="https://github.com/user-attachments/assets/d54a05c6-5c31-4149-92e8-fb0870ccd682" height="100" alt="Bloc" />
</p>
<h1 align="center">
View Model X
</h1>
<p align="center">
<a href="https://pub.dev/packages/view_model_x">
<img src="https://img.shields.io/pub/v/view_model_x.svg?color=success&label=pub.dev&logo=dart&logoColor=0099ff" alt="pub.dev" />
</a>
</p>

An Android similar state management package which helps to implement MVVM pattern easily.

Expand Down Expand Up @@ -226,7 +234,7 @@ OR
context.vm<CustomViewModel>()
```

## Builder, Listener, and Consumer Flutter Widgets
## Builder, Listener, and Consumer Flutter Widgets

### StateFlowBuilder

Expand All @@ -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<MyChangeNotifier>()`.
We can use `bind` with any `StateFlow` which observe the value change and update the ui.
This is similar to Provider's `context.watch<MyChangeNotifier>()`.
```dart
final value = context.vm<CustomViewModel>().myStateFlow.bind(context);
```
Expand Down

0 comments on commit 52f9170

Please sign in to comment.