redus_flutter 0.1.0 copy "redus_flutter: ^0.1.0" to clipboard
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 Component extending StatefulWidget
    • setup() method for reactive state initialization
    • render() method replacing build()
    • rebuild() method to trigger component update
  • Lifecycle Hooks (src/component/lifecycle.dart)

    • onBeforeMount - Before first build
    • onMounted - After first build
    • onBeforeUpdate - Before rebuild
    • onUpdated - After rebuild
    • onBeforeUnmount - Before dispose
    • onUnmounted - After dispose
    • onErrorCaptured - Error boundary
    • onActivated / onDeactivated - Route visibility
    • onRenderTracked / onRenderTriggered - Debug hooks
  • Dependency Injection (src/di/service_locator.dart)

    • register<T>() - Register singleton
    • registerFactory<T>() - Register factory
    • get<T>() - Get instance
    • isRegistered<T>() - Check registration
    • unregister<T>() - Remove registration
    • resetServiceLocator() - Clear all

Dependencies #

  • Built on redus reactivity system
  • Re-exports all redus APIs for convenience
0
likes
0
points
646
downloads

Publisher

unverified uploader

Weekly Downloads

Vue-like Component system for Flutter with reactive state and lifecycle hooks.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #state-management #component #lifecycle

License

unknown (license)

Dependencies

flutter, meta, redus

More

Packages that depend on redus_flutter