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
30
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

DataStateBuilder and other data_state Flutter utilities

Homepage

License

MIT (license)

Dependencies

data_state, flutter, flutter_state_notifier

More

Packages that depend on flutter_data_state