Unverified Commit e685c938 authored by Darren Austin's avatar Darren Austin Committed by GitHub

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

parent 6153bbef
...@@ -39,8 +39,8 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> { ...@@ -39,8 +39,8 @@ class _MyStatefulWidgetState extends State<MyStatefulWidget> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final ColorScheme colorScheme = Theme.of(context).colorScheme; final ColorScheme colorScheme = Theme.of(context).colorScheme;
final Color oddItemColor = colorScheme.primary.withOpacity(0.05); final Color oddItemColor = colorScheme.secondary.withOpacity(0.05);
final Color evenItemColor = colorScheme.primaryVariant.withOpacity(0.15); final Color evenItemColor = colorScheme.secondary.withOpacity(0.15);
final Color draggableItemColor = colorScheme.secondary; final Color draggableItemColor = colorScheme.secondary;
Widget _proxyDecorator(Widget child, int index, Animation<double> animation) { Widget _proxyDecorator(Widget child, int index, Animation<double> animation) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment