volt 0.0.0 copy "volt: ^0.0.0" to clipboard
volt: ^0.0.0 copied to clipboard

Simple, fast, effortless data fetching and real-time updates

volt ⚡️ #

Effortlessly manage asynchronous data fetching, caching, and real-time data delivery with minimal code.

Install #

flutter pub add volt
copied to clipboard

Usage #

final usersQuery = VoltQuery(
  box: "users",
  source: () => fetch("https://jsonplaceholder.typicode.com/users"),
  fromJson: Users.fromJson,
);

Widget build(BuildContext context) {
  final users = useQuery(usersQuery);

  return users == null
      ? CircularProgressIndicator()
      : ListView.builder(
    itemCount: users.length,
    itemBuilder: (_, index) => ListTile(title: Text(users[index].name)),
  );
}
copied to clipboard
1
likes
0
points
441
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

Simple, fast, effortless data fetching and real-time updates

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on volt