Taha Tesser
ec69f001fc
Fix SnackBar action text button overlay color (#148961)
fixes [`SnackBar` action hover state background too hard to see](https://github.com/flutter/flutter/issues/141343)
### Code sample
<details>
<summary>expand to view the code sample</summary>
```dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: Scaffold(
body: Center(
child: ScaffoldButton(),
),
),
);
}
}
class ScaffoldButton extends StatelessWidget {
const ScaffoldButton({super.key});
@override
Widget build(BuildContext context) {
return TextButton(
onPressed: () {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
behavior: SnackBarBehavior.floating,
width: 320,
content: const Text('This is a snackbar!'),
action: SnackBarAction(
label: 'Close',
onPressed: () {},
),
),
);
},
child: const Text('Launch snackbar'),
);
}
}
```
</details>
### Before
<img src="https://github.com/flutter/flutter/assets/48603081/88b53c92-6184-4faf-88e1-ac70f78993b3"/>
### After
<img src="https://github.com/flutter/flutter/assets/48603081/3e03c903-90c0-4da4-b49a-0070208d56d1" />
2024-05-23 22:42:52 +00:00
..
2024-05-09 16:31:54 -06:00
2024-01-16 10:08:27 +00:00
2024-02-28 13:55:50 -08:00
2024-03-01 06:40:47 +00:00
2024-04-08 18:42:07 +00:00
2024-05-01 22:05:02 +00:00
2024-01-29 18:14:02 +00:00
2024-01-24 16:49:18 +00:00
2024-05-09 16:47:16 +00:00
2024-05-20 17:43:03 +00:00
2024-02-28 00:07:51 +00:00
2024-02-28 13:55:50 -08:00
2024-05-20 17:43:03 +00:00
2024-04-03 15:18:06 +00:00
2024-04-01 11:39:48 +00:00
2024-05-09 16:31:54 -06:00
2024-04-02 18:37:05 +00:00
2024-05-22 07:11:07 +00:00
2024-03-28 01:20:55 +00:00
2024-05-09 16:31:54 -06:00
2024-05-09 16:31:54 -06:00
2023-11-29 09:54:59 +00:00
2024-05-09 16:31:54 -06:00
2024-02-20 21:02:47 +00:00
2024-05-10 23:37:05 +00:00
2024-05-14 13:46:35 -07:00
2024-05-10 23:37:05 +00:00
2024-05-08 00:27:59 +00:00
2024-02-28 13:55:50 -08:00
2024-01-29 18:14:02 +00:00
2024-04-03 15:54:34 +00:00
2024-01-18 18:38:00 +01:00
2024-04-01 09:42:51 +00:00
2024-05-20 17:43:03 +00:00
2024-03-19 17:00:24 +00:00
2024-05-09 16:31:54 -06:00
2024-05-10 22:08:59 +00:00
2024-05-16 08:10:51 -07:00
2024-05-15 18:37:07 +00:00
2024-05-21 16:18:05 +00:00
2024-05-10 21:55:49 +00:00
2024-05-21 19:15:21 +00:00
2024-02-28 13:55:50 -08:00
2024-02-01 22:31:10 +00:00
2024-05-09 15:35:07 +00:00
2023-12-06 16:40:24 +00:00
2024-05-04 18:19:29 -07:00
2024-02-28 13:55:50 -08:00
2024-02-28 13:55:50 -08:00
2024-02-01 22:31:10 +00:00
2024-04-29 08:26:19 +00:00
2024-04-26 04:38:22 +00:00
2024-05-01 12:58:35 -07:00
2023-11-27 15:33:07 -08:00
2024-05-01 12:58:35 -07:00
2024-05-20 17:43:03 +00:00
2024-05-20 17:43:03 +00:00
2024-05-20 17:43:03 +00:00
2024-05-20 17:43:03 +00:00
2024-05-18 10:41:56 -07:00
2024-05-21 16:18:05 +00:00
2024-02-13 20:30:53 +00:00
2024-02-29 15:16:53 -08:00
2024-05-16 05:40:30 +00:00
2024-03-19 17:58:16 +00:00
2024-04-02 18:37:05 +00:00
2024-04-08 22:01:05 +00:00
2024-02-21 08:59:24 +00:00
2024-04-22 16:49:19 +00:00
2024-05-02 21:59:07 +00:00
2024-05-21 16:12:05 +00:00
2024-05-22 07:11:07 +00:00
2024-05-20 17:43:03 +00:00
2023-11-27 21:02:35 +00:00
2024-05-20 17:43:03 +00:00
2024-05-20 17:43:03 +00:00
2024-05-08 11:05:24 +00:00
2023-11-17 18:50:33 +00:00
2024-05-21 16:44:05 +00:00
2024-05-20 17:43:03 +00:00
2024-05-13 22:45:51 +00:00
2023-12-11 20:25:26 +00:00
2024-05-15 13:50:03 -07:00
2024-03-27 16:43:10 -07:00
2024-03-28 22:22:20 +00:00
2024-03-19 17:00:24 +00:00
2024-02-29 20:58:11 +00:00
2024-05-14 13:46:35 -07:00
2024-05-20 17:43:03 +00:00
2024-02-09 22:03:23 +00:00
2024-03-22 13:55:06 +00:00
2024-05-20 17:43:03 +00:00
2024-03-13 16:31:50 +00:00
2024-05-01 12:58:35 -07:00
2024-05-03 09:34:11 -07:00
2024-05-22 07:11:07 +00:00
2024-01-17 22:49:04 +00:00
2024-05-20 17:43:03 +00:00
2024-01-30 22:41:15 +00:00
2024-04-24 11:56:32 +00:00
2024-05-18 10:41:56 -07:00
2024-02-28 14:36:08 -08:00
2024-04-03 15:49:38 -07:00
2024-04-23 16:32:15 +00:00
2024-05-20 17:43:03 +00:00
2024-02-16 20:50:07 +00:00
2024-05-23 22:42:52 +00:00
2023-10-22 20:46:21 +00:00
2024-05-21 16:18:05 +00:00
2024-02-29 20:58:11 +00:00
2024-05-14 13:46:35 -07:00
2024-05-07 20:54:09 +00:00
2024-04-22 20:28:50 +00:00
2024-01-12 22:10:25 +00:00
2024-05-20 17:43:03 +00:00
2024-02-28 13:55:50 -08:00
2024-05-23 22:25:51 +00:00
2024-05-23 22:25:51 +00:00
2024-03-01 06:40:47 +00:00
2024-03-01 06:40:47 +00:00
2024-03-28 01:20:55 +00:00
2024-05-16 07:32:19 +00:00
2024-03-19 17:00:24 +00:00
2024-05-18 10:41:56 -07:00
2024-03-04 20:20:19 +00:00
2024-04-23 16:32:15 +00:00
2024-01-24 17:26:03 +00:00
2024-05-20 17:43:03 +00:00
2024-03-09 01:08:06 +00:00
2024-04-16 12:15:37 -07:00