Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

MaterialStateProperty flutter

// ** Declaration ** //
MaterialStateProperty<Color?>? redColor = MaterialStateProperty.all(Colors.red);
// backgroundColor property
backgroundColor: MaterialStateProperty.all(Colors.green),
//OR
backgroundColor: MaterialStateProperty.all(Color(0xFFEDEDED)),
 
PREVIOUS NEXT
Tagged: #flutter
ADD COMMENT
Topic
Name
2+4 =