stryder-dev / flutter_platform_widgets

Target the specific design of Material for Android and Cupertino for iOS widgets through a common set of Platform aware widgets
MIT License
1.57k stars 171 forks source link

RefreshIndicator.adaptive doesn't work inside PlatformScaffold in IOS #430

Open vadimbarda opened 1 year ago

vadimbarda commented 1 year ago

Hi. Thanks for this awesome package which can help a lot in development. I see issue with using RefreshIndicator.adaptive widget in IOS inside PlatformScaffold. My example works fine on Android. It works correct on IOS if PlatformScaffold replace to Scaffold. Please suggest if something wrong in my code example? Or there is some workaround or issue can be fixed in near future?

Widget build(BuildContext context) {
    return PlatformScaffold(
        appBar: PlatformAppBar(title: const Text('Refresh Indicator')),
        body: RefreshIndicator.adaptive(
          onRefresh: () => Future.delayed(const Duration(seconds: 1)),
          child: ListView.builder(
            itemCount: 50,
            itemBuilder: (context, index) {
              return Row(children: [Text('Item $index')]);
            },
          ),
        ));
  }