Skip to content

Add view_model architecture sample - #219

Open
lwj1994 wants to merge 1 commit into
brianegan:mainfrom
lwj1994:add-view-model-sample
Open

lwj1994 wants to merge 1 commit into
brianegan:mainfrom
lwj1994:add-view-model-sample

Conversation

@lwj1994

@lwj1994 lwj1994 commented Sep 3, 2026 •

Copy link
Copy Markdown

Summary

  • Add a complete TodoMVC sample implemented with the view_model package.
  • Resolve the shared TodoListViewModel from each screen through its own ViewModelBinding.read(spec) call, using the repository as an explicit sharing key.
  • Add ViewModel unit tests, widget flow tests, the shared integration test suite, and serial test configuration.
  • Register the sample in the README, website, line counter, CI, and combined coverage job.
  • Reserve https://fas-view-model.netlify.app as the conventional Web Demo URL; deployment remains disabled until the Netlify site is configured.

Validation

  • dart format --output=none --set-exit-if-changed .
  • flutter analyze
  • flutter test --coverage --concurrency=1 (7 tests, 78.21% coverage)
  • flutter test integration_test/app_test.dart -d macos
  • flutter build web --wasm

@lwj1994
lwj1994 force-pushed the add-view-model-sample branch from 278e33a to bfcc390 Compare September 3, 2026 06:19

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant