StateのFutureをreloadする(失敗例) build内でFutureBuilderを使い、そこで使用するデータとしてFuture<List<String>>みたいな物をStatefulWidgetのStateとして保持していました。 内容は変えていますが、以下のようなソースコードです。 この状況で、FloatingActionButtonボタンを押すと、55行目で以下のエラーが発生します。 FlutterError (setState() callback argument returned a Future. The setState() method on _ListViewWidgetState#3ce67 was called with a closure or method that returned a Future. Maybe it is marked as “
![【Flutter】StateにFutureを持たせた時のreload方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/a5b153730d3ae6b5801eaef7bb3ba53adf42ebde/height=288;version=1;width=512/https%3A%2F%2Fblog.mrym.tv%2Fwp-content%2Fuploads%2F2019%2F12%2Fflutter-logo.png)