-
-
Notifications
You must be signed in to change notification settings - Fork 134
Handle library with Bloc Library #65
Comments
@fayaz07 have you looked or considered my issue? |
I already had an idea to manage it with provider bloc, but that requires complete changing the core of the library, I will find a solution for it. |
Sure. Hope that I'll get your response as soon as possible.
…On Tue, May 26, 2020 at 8:44 AM Mohammad Fayaz ***@***.***> wrote:
I already had an idea to manage it with provider bloc, but that requires
complete changing the core of the library, I will find a solution for it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#65 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APGW34X7YVNSSV2TMXGFWD3RTMX2PANCNFSM4NIN5T7Q>
.
|
@visual-velocity Can't you just create 3 states for the Bloc? Handle it through BLoC listener: GetAPILoading
GetAPILoaded -GetAPIFailed
|
I had already tried and it's worked. |
@visual-velocity It is possible. I'm currently using in this way: @override
Widget build(BuildContext context) {
_downloadDialog ??= ProgressDialog(
context,
type: ProgressDialogType.Download,
isDismissible: true,
)..style(message: 'Downloading...');
return BlocConsumer<ManageFlightDataDownloadsBloc, ManageFlightDataDownloadsState>(
builder: _buildView,
listener: (context, state) async {
if (state.isDownloadInProgress) {
await _downloadDialog.show();
_downloadDialog.update(progress: state.progress);
} else {
await _downloadDialog.hide();
}
},
);
} But it would be better if could be used "the BLoC way" |
Describe the bug
A clear and concise description of what the bug is.
First of all thank you so much @fayaz07 for published this great library.Really appreciated to you.
Now a days there is Bloc library is used for handling the state management, can you suggest us with one example where we are handle this library with Bloc Library. We need your example to support our production app.
The text was updated successfully, but these errors were encountered: