Circular progress indicator for http.post and webview in flutter

1,241 views
Skip to first unread message

Niladri Paul

unread,
May 6, 2019, 8:17:35 AM5/6/19
to Flutter Dev
I am new to flutter. Please help me with these two cases.

a. I am doing an http.post request to an API in flutter which returns some value. I want to add a circular progress bar unless the value is returned from the API. How to do that ?

b. I am using web view in flutter to view html pages. I want to add circular progress bar until the page is fully loaded. How to do that?

Thanks,
Niladri

Rabih M. ElBaba (Gmail)

unread,
May 6, 2019, 11:06:14 AM5/6/19
to Niladri Paul, Flutter Dev
Share your code in order to correct and modify.

Regards

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Maurice McCabe

unread,
May 6, 2019, 4:57:17 PM5/6/19
to Flutter Dev
Check out https://pub.dev/packages/modal_progress_hud
Use it to wrap any widget you want to make modal while running. This should give you a circular progress indicator until the http post request returns.

Rabih M. ElBaba (Gmail)

unread,
May 6, 2019, 5:12:05 PM5/6/19
to Maurice McCabe, Flutter Dev
Did you try the following?


For the spinner, you can use the new CircularProgressIndicator()

Regards



--

Niladri Paul

unread,
May 7, 2019, 1:14:00 AM5/7/19
to Rabih M. ElBaba (Gmail), Maurice McCabe, Flutter Dev
Thanks to all of you.

Setting a boolean variable true and false worked for me. Great to hear from you all.

Thanks,
Niladri
Reply all
Reply to author
Forward
0 new messages