firefile 0.2.1 firefile: ^0.2.1 copied to clipboard
The Firefile package makes it easy to control the display of the Firestore file download progress.
Firefile #
This package makes it easy to control the display of the Firestore file download progress.
Getting started #
Make sure that all Firebase requirements are installed.
Usage #
- Initialize
FirefileController
:
controller = FirefileController();
- Use
Firefile
in the widget tree, providing the requiredcontroller
initialized above andtileBuilder
:
Firefile(
controller: controller,
tileBuilder: (task) {
return ListTile(
title: Text(task.fileName),
trailing: _buildTrailing(task.state), // Full example in `example/` folder
);
},
),
- It works! 🎉