Replaced the reference to primaryVariant in code example as it will soon be deprecated. (#93351)

This commit is contained in:
Darren Austin 2021-11-09 17:49:40 -08:00 committed by GitHub
parent 6153bbef3e
commit e685c938a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,8 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
@override
Widget build(BuildContext context) {
final ColorScheme colorScheme = Theme.of(context).colorScheme;
final Color oddItemColor = colorScheme.primary.withOpacity(0.05);
final Color evenItemColor = colorScheme.primaryVariant.withOpacity(0.15);
final Color oddItemColor = colorScheme.secondary.withOpacity(0.05);
final Color evenItemColor = colorScheme.secondary.withOpacity(0.15);
final Color draggableItemColor = colorScheme.secondary;
Widget _proxyDecorator(Widget child, int index, Animation<double> animation) {