We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
how to make the grids clickable? I try to change to another layout when one of the items is clicked.
The text was updated successfully, but these errors were encountered:
Wrap your grid item with GestureDetector.
i.e
GestureDetector( onTap: () { print("onTap called."); }, child: Text("Hello World"), ),
Commit with change: 034178d
Sorry, something went wrong.
Forgot to mention, you can also use InkWell class which will enable ripple effect.
InkWell ( onTap: () { print("onTap called."); }, child: Text("Hello World"), ),
Depending on your use case, use either InkWell or GestureDetector
InkWell
GestureDetector
Read more : https://api.flutter.dev/flutter/material/InkWell-class.html
No branches or pull requests
how to make the grids clickable?
I try to change to another layout when one of the items is clicked.
The text was updated successfully, but these errors were encountered: