top of page
Search

Make Checkboxes Fully Clickable flutter

  • Writer: Aarthi Krishnan
    Aarthi Krishnan
  • Jan 21, 2024
  • 1 min read

Updated: Jan 27, 2024


Checkbox Flutter


Hey guys it's me Aarthi Krishnan. Let's learn about checkbox flutter IgnorePointer today. Ignorepointer is used to make it clickable for full Container. It will work like an Inkwell.


CheckBox click detection for full box. It will be a more user-friendly UI by making them clickable for full box .

How flutter checkbox IgnorePointer works: If there is a widget beneath your main widget which is also capable of receiving click events, and you use IgnorePointer on the parent widget and still your child widget would receive the click event.


Make onchange null

This is how ignorepointer workes. We can pass null value in onChanged.


Example source code:


Output:



That's it guys. Thank you for your time. Happy coding!

1 Comment


Aarthi Mclansys
Aarthi Mclansys
Jan 23, 2024

Thank you!!

Like
bottom of page