Answers for "style Elevated button in flutter"

7

elevated button flutter color

ElevatedButton(
  style: ButtonStyle(
    backgroundColor: MaterialStateProperty.resolveWith<Color>(
      (Set<MaterialState> states) {
        if (states.contains(MaterialState.pressed))
          return Colors.green;
        return null; // Use the component's default.
      },
    ),
  ),
)
Posted by: Guest on March-05-2021
-1

how to style an elevated button in flutter

elevatedButton
Posted by: Guest on June-12-2021

Code answers related to "style Elevated button in flutter"

Browse Popular Code Answers by Language