steady_async_riverpod 0.1.1 copy "steady_async_riverpod: ^0.1.1" to clipboard
steady_async_riverpod: ^0.1.1 copied to clipboard

Riverpod 3 adapters for perception-aware async UX with steady_async.

steady_async_riverpod #

Riverpod 3 integration for steady_async. It translates AsyncValue<T> without changing your provider architecture.

dependencies:
  steady_async_riverpod: ^0.1.1
final users = ref.watch(usersProvider);

return SteadyRiverpodView<List<User>>(
  value: users,
  onRetry: () => ref.invalidate(usersProvider),
  isEmpty: (items) => items.isEmpty,
  dataBuilder: (context, items) => UsersList(items),
);

AsyncValue.toSteadyState() also gives you an explicit core state. Previous values, refresh/reload intent, stack traces, errors, and progress are preserved. Requires Dart 3.7+ and Riverpod 3.

For cursor pagination, let an autoDispose Provider own a core SteadyPagedController and dispose it through ref.onDispose. See the complete Riverpod 3 and Firestore recipe.

1
likes
150
points
16
downloads

Documentation

API reference

Publisher

verified publishernexdark.com

Weekly Downloads

Riverpod 3 adapters for perception-aware async UX with steady_async.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#riverpod #async #loading #state-management

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_riverpod, steady_async

More

Packages that depend on steady_async_riverpod