flutter_queue_it

Pub Version codecov

Flutter integration with queue_it.

Provides the QueueItWidget widget that listens to the queue and automatically rebuilds on changes.

Example

QueueItWidget(
  queue: _queue,
  builder: (context, snapshot) {
    /// `builder` will be called each time the queue updates
    final items = _queue.items().toList();
    return ListView.builder(
      itemCount: items.length,
      itemBuilder: (context, index) {
        final item = items[index];
        return ListTile(
          title: Text('Item status: ${item.status.name}'),
        );
      },
    );
  },
);

For a more in-depth example, check out the example project.

Libraries

flutter_queue_it