mirror of
https://github.com/flutter/flutter
synced 2024-08-27 12:00:58 +00:00
Replaced the reference to primaryVariant
in code example as it will soon be deprecated. (#93351)
This commit is contained in:
parent
6153bbef3e
commit
e685c938a3
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue