diff --git a/examples/api/lib/material/text_button/text_button.0.dart b/examples/api/lib/material/text_button/text_button.0.dart index bfc171047d4..84fc277a038 100644 --- a/examples/api/lib/material/text_button/text_button.0.dart +++ b/examples/api/lib/material/text_button/text_button.0.dart @@ -99,16 +99,8 @@ class _TextButtonExampleState extends State { // the current dark/light mode. Used to define TextButton #7's // gradients. final (Color color1, Color color2, Color color3) = switch (colorScheme.brightness) { - Brightness.light => ( - Colors.blue.withOpacity(1.0), - Colors.orange.withOpacity(1.0), - Colors.yellow.withOpacity(1.0), - ), - Brightness.dark => ( - Colors.purple.withOpacity(1.0), - Colors.cyan.withOpacity(1.0), - Colors.yellow.withOpacity(1.0), - ), + Brightness.light => (Colors.blue, Colors.orange, Colors.yellow), + Brightness.dark => (Colors.purple, Colors.cyan, Colors.yellow), }; // This gradient's appearance reflects the button's state.