flutter_easyloading icon indicating copy to clipboard operation
flutter_easyloading copied to clipboard

How to use in FutureBuilder?

Open mytc opened this issue 3 years ago • 5 comments

The FutureBuilder need to return a widget, but easyloading have to call the instance. How to solve this issue? FYI, I used this when loading a page, while waiting for the data to load, I need to show the loading indicator.


  if (snapshot.connectionState == ConnectionState.active ||
              snapshot.connectionState == ConnectionState.waiting) {
            EasyLoading.show();
            return SizedBox();
          }

mytc avatar May 17 '21 06:05 mytc

Thanks for taking the time to open an issue. I will have a look and answer as soon as possible.

github-actions[bot] avatar May 17 '21 06:05 github-actions[bot]

bump

neiljaywarner avatar Jun 10 '21 21:06 neiljaywarner

See this answer Hope it helps you.

gOzaru avatar Sep 09 '21 05:09 gOzaru

Sooooo... did anyone find a solution? 😅 I've spent my whole day trying to figure this out, I asked like 3 different chatbots, tried million different approaches, but no luck...

ToxicGamer-exe avatar Aug 25 '23 17:08 ToxicGamer-exe

Could you use riverpod asyncvalue either with or without easyloader

neiljaywarner avatar Aug 25 '23 22:08 neiljaywarner