redus_flutter 0.1.0
redus_flutter: ^0.1.0 copied to clipboard
Vue-like Component system for Flutter with reactive state and lifecycle hooks.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2024-12-18 #
Added #
-
Component Base Class (
src/component/)- Vue-like
ComponentextendingStatefulWidget setup()method for reactive state initializationrender()method replacingbuild()rebuild()method to trigger component update
- Vue-like
-
Lifecycle Hooks (
src/component/lifecycle.dart)onBeforeMount- Before first buildonMounted- After first buildonBeforeUpdate- Before rebuildonUpdated- After rebuildonBeforeUnmount- Before disposeonUnmounted- After disposeonErrorCaptured- Error boundaryonActivated/onDeactivated- Route visibilityonRenderTracked/onRenderTriggered- Debug hooks
-
Dependency Injection (
src/di/service_locator.dart)register<T>()- Register singletonregisterFactory<T>()- Register factoryget<T>()- Get instanceisRegistered<T>()- Check registrationunregister<T>()- Remove registrationresetServiceLocator()- Clear all
Dependencies #
- Built on
redusreactivity system - Re-exports all
redusAPIs for convenience