Open Patrick386 opened 6 months ago
I have tried several tests, but I couldn't find a solution other than using StreamBuilder.
/// Loading Indicator
StreamBuilder(
stream: ctr.responseData, // hitsSearcher.responses
builder: (context, snapshot) {
if (snapshot.connectionState ==
ConnectionState.waiting) {
return const LinearProgressIndicator();
}
return const SizedBox.shrink();
}),
I combined Riverpod to process the screen and data. Currently, the package only supports Stream. I cannot display the Loading state of the data on the screen. Is it possible to support Future? Or is there a way to know the Data Loading state?
Note that I am not using 'StreamBuilder'. Even after changing to 'StreamNotifier', the issue remains the same.
UI: