Skip to content

State management (MVVM)

Noah Rahm edited this page Mar 26, 2026 · 2 revisions

Stacked

For state management Bibleside uses Stacked: an MVVM framework for building maintainable applications. See the Stacked documentation to learn how it works.

Stacked CLI Commands

A list of the Stacked CLI commands you may use when you contribute code.

  • Use stacked generate to re-sync the generated files. If you find that the IDE linter is telling you that some files in the tests folder have errors, running this command will update them and resolve the IDE errors.

  • Global widget: Use stacked create widget <widget_name> to create a new global widget in the lib/ui/widgets/common/ folder.

  • Local widget: Use stacked create widget <widget_name> --path 'ui/widgets/<the_view_folder>/widgets' to create a new widget for a specific view of the app. If you are needing to create a widget inside of a sub-widget, add the subfolder to the path in the command above accordingly.

  • Service: Use stacked create service <service_name> to create a new service in the lib/services/ folder.

Clone this wiki locally