xuelongqy / flutter_easy_refresh

A flutter widget that provides pull-down refresh and pull-up load.
https://xuelongqy.github.io/flutter_easy_refresh/
MIT License
3.89k stars 633 forks source link

Duplicate keys found. #719

Open askankit opened 1 year ago

askankit commented 1 year ago

The following assertion was thrown building AnimatedSwitcher(duration: 300ms, reverseDuration: 100ms, state: _AnimatedSwitcherState#5f3f7(tickers: tracking 3 tickers)): Duplicate keys found.

Please share solution.

xuelongqy commented 1 year ago

Please provide code to reproduce

xuelongqy commented 1 year ago

I can't run the code you provided. You can try to simplify your business code, make it runnable and reproducible. This is conducive to troubleshooting, instead of using intuition to judge by reviewing the code.

Insist-g commented 1 year ago

======== Exception caught by widgets library ======================================================= The following assertion was thrown building AnimatedSwitcher(duration: 300ms, reverseDuration: 100ms, state: _AnimatedSwitcherState#da2af(tickers: tracking 3 tickers)): Duplicate keys found.

If multiple keyed widgets exist as children of another widget, they must have unique keys. Stack(alignment: Alignment.center, fit: loose) has multiple children with key [<[<[<'indicator'>]>]>]. The relevant error-causing widget was: EasyRefresh EasyRefresh:file:///

Insist-g commented 1 year ago

I find the reason may be footer CupertinoFooter's problem

XiaoWei3209 commented 1 year ago

So did I

chueikan commented 1 year ago

======== Exception caught by widgets library ======================================================= The following assertion was thrown building AnimatedSwitcher(duration: 300ms, reverseDuration: 100ms, state: _AnimatedSwitcherState#da2af(tickers: tracking 3 tickers)): Duplicate keys found.

If multiple keyed widgets exist as children of another widget, they must have unique keys. Stack(alignment: Alignment.center, fit: loose) has multiple children with key [<[<[<'indicator'>]>]>]. The relevant error-causing widget was: EasyRefresh EasyRefresh:file:///

I have the same issue. Using CupertinoFooter()