oboe 0.1.3 copy "oboe: ^0.1.3" to clipboard
oboe: ^0.1.3 copied to clipboard

Oboe is a elegant state management library. Its description only needs two screenshots, Oboe not need Provider at root Widget, Oboe is tiny and ease use, only 2 API.

🎺 Oboe - Elegant state management library #

Oboe is elegant from the name to the way it is used. Its description only needs two screenshots

Feature #

  • Oboe not need Provider at root Widget.
  • Oboe use memo to intercept update, like react.Hooks.
  • Oboe is tiny and ease use, only 2 API: ob, next

Install Oboe #

Change pubspec.yaml:

dependencies:
  oboe:

Overall interpretation #

Instance a user,extends Oboe:

// Definition Oboe
class User extends Oboe {
  String name = "dog";
}

// Instance, use some widgets
var user = User();

Subscribe and return a weight:

user.ob(()=>Text(user.name))

Submit and update user.ob's subscribe:

user.next()

Better performance #

Use memo options params, like React.useMemo, only rerender data in memo array.

Example only rerender when user.name change:

user.ob(
  () => Text(user.name), 
  memo: ()=>[user.name],
);

Thanks #

That all, keep sample :)

6
likes
150
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Oboe is a elegant state management library. Its description only needs two screenshots, Oboe not need Provider at root Widget, Oboe is tiny and ease use, only 2 API.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on oboe