Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No named parameter with the name 'restorationId' #150

Closed
mohmdezeldeen opened this issue Dec 24, 2020 · 9 comments
Closed

No named parameter with the name 'restorationId' #150

mohmdezeldeen opened this issue Dec 24, 2020 · 9 comments

Comments

@mohmdezeldeen
Copy link

mohmdezeldeen commented Dec 24, 2020

when build app this error appear: No named parameter with the name 'restorationId'
Full:
/Pub/Cache/hosted/pub.dartlang.org/pub_cache-0.2.3/hosted/pub.dev/flutter_staggered_grid_view-0.3.3/lib/src/widgets/staggered_grid_view.dart:425:11: Error: No named parameter with the name 'restorationId'.
restorationId: restorationId,

this error appear after new update of package flutter_staggered_grid_view to 0.3.3
Add support for state restoration.

To temporarily solve this problem I added the following in pubspec.yaml file
dependency_overrides:
flutter_staggered_grid_view: 0.3.2

DO NOT ADD ^ to lib version number

@jerfsonsilva
Copy link

Eu resolvi colocar como dependencia: flutter_staggered_grid_view: 0.3.0
assim parou de dar erro

@letsar
Copy link
Owner

letsar commented Jan 3, 2021

What flutter version do you use?

@mohmdezeldeen
Copy link
Author

mohmdezeldeen commented Jan 3, 2021

@letsar Sorry for creating this issue here by mistake, instead of creating it in the flappy_search_bar repo that relies on your package, thanks for your understanding.
Issue Link HERE

@joshuaatencia
Copy link

i have same error

@uzairleo
Copy link

i am facing the same error

@wjx1018960145
Copy link

请问这个问题怎么解决

@letsar
Copy link
Owner

letsar commented Jan 28, 2021

The last version of the package is sync with the stable channel, so you should either upgrade your version of flutter (to target the current stable with flutter upgrade) or downgrade the version of this package.

@quanjin24k
Copy link

resolution:

  1. upgrade flutter -> latest, stage_grid_view -> your current used version;
  2. or, use your current flutter version, degrade stage_grid_view ->0.3.2;
    because attribute "restorationId", is not exist in older flutter version.

@jianguo888
Copy link

flutter_staggered_grid_view: 0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants