grouped_list icon indicating copy to clipboard operation
grouped_list copied to clipboard

When pulling screen with RefreshIndicator, the top stickerGroupSeparator should be pulled also

Open minhdanh opened this issue 2 years ago • 0 comments

Hi, first thank you for your great package. I'm using it with the following settings:

RefreshIndicator(
      backgroundColor: Theme.of(context).colorScheme.primary,
      color: Theme.of(context).colorScheme.onPrimary,
      onRefresh: () {
        // BlocProvider.of<HomeStatsBloc>(context).add(LoadHomeStatsEvent());
        return Future.delayed(const Duration(seconds: 1));
      },
      child: GroupedListView<Transaction, String>(
        // TODO: this should bounce with the group header also
        // may need to ask grouped_list developer to fix
        physics: const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),
        controller: _scrollController,
        useStickyGroupSeparators: true,
        ...

When I don't set useStickyGroupSeparators (meaning its value is false), I can pull the whole screen. But when that field is true, the top group separator won't be pulled, which makes it look odd to me. Here's how it looks:

Screenshot from 2021-11-20 17-00-10@2x

Is there anyway I can still use useStickyGroupSeparators: true while also be able to pull the whole screen? Willing to create a PR for this if needed.

minhdanh avatar Nov 20 '21 10:11 minhdanh