reactter 0.0.1-dev.2 copy "reactter: ^0.0.1-dev.2" to clipboard
reactter: ^0.0.1-dev.2 copied to clipboard

outdated

Reactter is a package that uses GetX as base to implement reactive behavior using some names and functionality we are familiarized from React Js.

What is? #

Reactter is a package that uses Get as base to implement reactive behavior using some names and functionality we are familiarized from React Js.

Features #

  • useEffect
  • useState
  • Reactter View
  • Reactter State
  • Reactter Controller
  • Routing Controller
  • Helpers
  • Exceptions
  • Types

Usage #

useState: #

//You can do this:
 late Reactter<int> counter = useState('counter', 0);

//Or add callbacks to catch events  
 late Reactter<int> counter = useState(
    'counter', 0,
    willUpdate: (prevValue, _) => {
      print("Before update!"),
    },
    didUpdate: (_, nextValue) => {
      print("After update!"),
    },
  );

useEffect: #

You can use multiple ids

Widget build(BuildContext context) {
    return UseEffect<YourController>(
        id: ['counter', 'loading']
        builder: (controller) => Text(controller.counter.value.toString())
    );
}

Getting started #

Just import the package

import 'package:reactter/reactter.dart';

WARNING: #


Development by 2devs.io #


Copyright (c) 2022 2devs.io

49
likes
0
pub points
4%
popularity

Publisher

verified publisher2devs.io

Reactter is a package that uses GetX as base to implement reactive behavior using some names and functionality we are familiarized from React Js.

Homepage

License

unknown (license)

Dependencies

flutter, get

More

Packages that depend on reactter