-
Notifications
You must be signed in to change notification settings - Fork 446
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
Add more InkWell
event in container.dart
#2684
Conversation
It does look like a duplicate of |
@isaffathir You may be interest in solving this issue, Please have a look at this issue #2628 |
i look into Container and yes it use Make Text clickable by ft.InkWell(
on_tap=lambda e: print("Sign Up"),
content=ft.Text("Click me for Sign Up", color=ft.colors.BLUE),
), Make Text clickable by ft.GestureDetector(
on_tap=lambda e: print("Sign Up"),
content=ft.Text("Click me for Sign Up", color=ft.colors.BLUE),
), |
You can put any control inside Container and make it clickable, no? |
It does,but i just suggest to make other more flexible to create clickable widget, just like |
I mean and you can wrap container with gesture detector as well. |
I got it, should i add other |
Hey @isaffathir, great work on this PR!
I read this answer from stack-overflow, and it seems like flet/packages/flet/lib/src/controls/container.dart Lines 148 to 153 in fe1a4d1
So, to be brief, the only thing Flet lacks atm is the possibility of customising the ripple effect. The solution will then be to further expose If you find the addition of this interesting/useful, you could perhaps work in that direction instead. 🙂 |
Thanks for answer @ndonkoHenri, your answer make me know Flet further. in this case i should add other |
Definitely! Go on... |
Flet already use InkWell on container.dart
InkWell
ControlInkWell
event in container.dart
InkWell
event in container.dartInkWell
event in container.dart
Close as dup of #2701 |
InkWell Control from Flutter
https://api.flutter.dev/flutter/material/InkWell-class.html
Test Code: