mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Updates for 3.22 (#2266)
Updates for 3.22 --------- Co-authored-by: Brett Morgan <brettmorgan@google.com> Co-authored-by: Qun Cheng <chengqunq@gmail.com> Co-authored-by: Brett Morgan <brett.morgan@gmail.com>
This commit is contained in:
@@ -58,8 +58,8 @@ class _AddButton extends StatelessWidget {
|
||||
cart.add(item);
|
||||
},
|
||||
style: ButtonStyle(
|
||||
overlayColor: MaterialStateProperty.resolveWith<Color?>((states) {
|
||||
if (states.contains(MaterialState.pressed)) {
|
||||
overlayColor: WidgetStateProperty.resolveWith<Color?>((states) {
|
||||
if (states.contains(WidgetState.pressed)) {
|
||||
return Theme.of(context).primaryColor;
|
||||
}
|
||||
return null; // Defer to the widget's default.
|
||||
|
||||
Reference in New Issue
Block a user