flutter_data_state 0.3.0 copy "flutter_data_state: ^0.3.0" to clipboard
flutter_data_state: ^0.3.0 copied to clipboard

outdated

DataStateBuilder and other data_state Flutter utilities

flutter_data_state #

DataStateBuilder and other data_state Flutter utilities.

👩🏾‍💻 Usage #

@override
Widget build(BuildContext context) {
  return DataStateBuilder<List<Post>>(
    notifier: repo.watchPosts(),
    builder: (context, state, _) {
      return Column(
        children: [
          if (state.isLoading)
            CircularProgressIndicator(),
          if (state.hasException)
            ExceptionWidget(state.exception),
          if (state.hasModel)
            ShowPost(state.model),
        ],
      );
    }
  );
}

➕ Collaborating #

Please use Github to ask questions, open issues and send PRs. Thanks!

📝 License #

See LICENSE

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

DataStateBuilder and other data_state Flutter utilities

Homepage
Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

data_state, flutter, flutter_state_notifier

More

Packages that depend on flutter_data_state