life_hooks 0.0.19 copy "life_hooks: ^0.0.19" to clipboard
life_hooks: ^0.0.19 copied to clipboard

A small classes to use flutter_hooks easier

Simplifies flutter_hook creation with several helper classes and widgets.

See example below:

SettingsState useSettingsState({
  required final ScreenLayout screenLayout,
}) =>
    use(
      LifeHook(
        debugLabel: 'SettingsState',
        state: SettingsState(
          screenLayout: screenLayout,
        ),
      ),
    );

class SettingsState extends LifeState {
  SettingsState({
    required this.screenLayout,
  });
  final ScreenLayout screenLayout;

  @override
  void initState() {}

  @override
  void dispose() {}
}