just_hook 0.0.2
just_hook: ^0.0.2 copied to clipboard
A lightweight, robust, and structurally complete Flutter Hooks framework inspired by React Hooks. Features state, effect, animation, HTTP, and form management.
0.0.2 #
- Testing: Added a comprehensive unit test suite (18 tests) covering the core framework and all provided hooks.
- Framework Fix: Fixed
HookKeys.didKeysChangeto correctly handlenullkeys, ensuring hooks likeusePreviouswork accurately across rebuilds. - Performance Optimization: Optimized
useMemoized,usePagination, and controller hooks (useTextEditingController,useScrollController, etc.) to prevent accidental disposals and re-creations when no keys are provided. - Stability: Fixed a race condition in
usePaginationinitialization and improved async test reliability. - CI/CD: Enhanced the GitHub Actions workflow with strict analysis (
--fatal-infos) and consistent Flutter commands.
0.0.1 #
- Initial Release: A lightweight, highly scalable, and structurally complete Flutter Hooks framework alternatively styled around React-Hooks.
- Core Engine: Added
Hook,HookState,HookWidget,HookElementMixinfor extensible hook support andHookElementfor uncompromised widget lifecycles. - Standard Hooks: Shipped
useState,useEffect, anduseMemoized. - Controller Hooks: Shipped
useScrollController,usePageController,useFocusNode, anduseTextEditingController. - **Advanced Networking:- **Initial Hook Suite**:
useState,useEffect,useMemoized,useFuture,useStream,useTextEditingController,useScrollController,usePageController,useFocusNode,useIsMounted,useValueListenable,useListenable,useDebounced,useStreamController. - Domain Hooks:
usePagination(infinite scroll),useForm(uncontrolled validation),useAnimationController(lifecycle-managed),useQuery/useMutation/useSubscription(REST/GraphQL). - Advanced Ecosystem:
useContext,useTheme,useMediaQueryfor reactive context access.useAppLifecycleStatefor system event tracking.
- Widget Support:
HookBuilderfor inline hook usage in any widget tree.StatefulHookWidgetfor combining traditionalStatewith Hooks.
- Documentation: Comprehensive inline docs and example application. strating all features interactively.