Fix refresh functionality
This commit is contained in:
@@ -191,6 +191,9 @@ class _MyHomePageState extends State<MyHomePage> with RouteAware {
|
|||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
future: sheets,
|
future: sheets,
|
||||||
builder: (BuildContext context, AsyncSnapshot<List<Sheet>> snapshot) {
|
builder: (BuildContext context, AsyncSnapshot<List<Sheet>> snapshot) {
|
||||||
|
if (snapshot.connectionState != ConnectionState.done) {
|
||||||
|
return const Center(child: CircularProgressIndicator());
|
||||||
|
}
|
||||||
if (snapshot.hasData) {
|
if (snapshot.hasData) {
|
||||||
return SheetsWidget(
|
return SheetsWidget(
|
||||||
sheets: snapshot.data!,
|
sheets: snapshot.data!,
|
||||||
|
|||||||
Reference in New Issue
Block a user