Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

materialstateproperty color

ElevatedButton(
          style: ButtonStyle(
          backgroundColor: MaterialStateProperty.all(Colors.amberAccent)),
          onPressed: () {},
          child: const Text(
            "Hover Me",
            style: TextStyle(
              fontSize: 20,
            ),
          ),
        ),
 
PREVIOUS NEXT
Tagged: #materialstateproperty #color
ADD COMMENT
Topic
Name
4+1 =