Just wondering if there is any difference between:
// == Add all picked idoes to the mix table
setState(() {
Future.forEach(result, (asset) async {
final video = await MixTableVideo.create(original: asset);
videos.add(video);
});
});
and:
// == Add all picked idoes to the mix table
Future.forEach(result, (asset) async {
final video = await MixTableVideo.create(original: asset);
videos.add(video);
});
setState(() {});
2
Answers
Finally I did this which fires a UI update at each video addition:
Before we can use state, we need to declare a default set of values for the initial state. This can be done by either creating a state object in the constructor or directly within the class.