Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change border color of checkbox in flutter / dart

Tags:

flutter

dart

I have a checkbox added to my UI in Flutter app, I can see checkbox color or active color property but can't find any option to change border color of checkbox , which is usually black.

Whats the provision or tweak to change the border color ?

like image 751
vishal dharankar Avatar asked Dec 18 '19 07:12

vishal dharankar


1 Answers

Checkbox(value: false, tristate: false, onChanged: () {});   ↓ Theme( data: ThemeData(unselectedWidgetColor: Colors.red), child: Checkbox(value: false, tristate: false, onChanged: (bool value) {}));  No onChanged, then the border will be grey(disabled). 
like image 181
kooskoos Avatar answered Oct 15 '22 09:10

kooskoos