@@ -2879,8 +2879,7 @@ void main() {
2879
2879
expect(getHintOpacity(tester), 1.0);
2880
2880
2881
2881
final ThemeData theme = Theme.of(tester.element(findDecorator()));
2882
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
2883
- final Color expectedColor = theme.hintColor;
2882
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
2884
2883
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
2885
2884
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
2886
2885
expect(getHintStyle(tester), expectedStyle);
@@ -2945,8 +2944,7 @@ void main() {
2945
2944
expect(getHintOpacity(tester), 1.0);
2946
2945
2947
2946
final ThemeData theme = Theme.of(tester.element(findDecorator()));
2948
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.withOpacity(0.38).
2949
- final Color expectedColor = theme.disabledColor;
2947
+ final Color expectedColor = theme.colorScheme.onSurface.withOpacity(0.38);
2950
2948
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
2951
2949
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
2952
2950
expect(getHintStyle(tester), expectedStyle);
@@ -3011,8 +3009,7 @@ void main() {
3011
3009
expect(getHintOpacity(tester), 1.0);
3012
3010
3013
3011
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3014
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3015
- final Color expectedColor = theme.hintColor;
3012
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3016
3013
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3017
3014
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3018
3015
expect(getHintStyle(tester), expectedStyle);
@@ -3077,8 +3074,7 @@ void main() {
3077
3074
expect(getHintOpacity(tester), 1.0);
3078
3075
3079
3076
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3080
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3081
- final Color expectedColor = theme.hintColor;
3077
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3082
3078
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3083
3079
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3084
3080
expect(getHintStyle(tester), expectedStyle);
@@ -3143,8 +3139,7 @@ void main() {
3143
3139
expect(getHintOpacity(tester), 1.0);
3144
3140
3145
3141
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3146
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3147
- final Color expectedColor = theme.hintColor;
3142
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3148
3143
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3149
3144
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3150
3145
expect(getHintStyle(tester), expectedStyle);
@@ -3353,8 +3348,7 @@ void main() {
3353
3348
expect(getHintOpacity(tester), 1.0);
3354
3349
3355
3350
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3356
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3357
- final Color expectedColor = theme.hintColor;
3351
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3358
3352
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3359
3353
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3360
3354
expect(getHintStyle(tester), expectedStyle);
@@ -3467,8 +3461,7 @@ void main() {
3467
3461
expect(getHintOpacity(tester), 1.0);
3468
3462
3469
3463
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3470
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3471
- final Color expectedColor = theme.hintColor;
3464
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3472
3465
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3473
3466
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3474
3467
expect(getHintStyle(tester), expectedStyle);
@@ -3533,8 +3526,7 @@ void main() {
3533
3526
expect(getHintOpacity(tester), 1.0);
3534
3527
3535
3528
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3536
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.withOpacity(0.38).
3537
- final Color expectedColor = theme.disabledColor;
3529
+ final Color expectedColor = theme.colorScheme.onSurface.withOpacity(0.38);
3538
3530
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3539
3531
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3540
3532
expect(getHintStyle(tester), expectedStyle);
@@ -3599,8 +3591,7 @@ void main() {
3599
3591
expect(getHintOpacity(tester), 1.0);
3600
3592
3601
3593
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3602
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3603
- final Color expectedColor = theme.hintColor;
3594
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3604
3595
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3605
3596
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3606
3597
expect(getHintStyle(tester), expectedStyle);
@@ -3665,8 +3656,7 @@ void main() {
3665
3656
expect(getHintOpacity(tester), 1.0);
3666
3657
3667
3658
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3668
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3669
- final Color expectedColor = theme.hintColor;
3659
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3670
3660
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3671
3661
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3672
3662
expect(getHintStyle(tester), expectedStyle);
@@ -3731,8 +3721,7 @@ void main() {
3731
3721
expect(getHintOpacity(tester), 1.0);
3732
3722
3733
3723
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3734
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3735
- final Color expectedColor = theme.hintColor;
3724
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3736
3725
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3737
3726
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3738
3727
expect(getHintStyle(tester), expectedStyle);
@@ -3939,8 +3928,7 @@ void main() {
3939
3928
expect(getHintOpacity(tester), 1.0);
3940
3929
3941
3930
final ThemeData theme = Theme.of(tester.element(findDecorator()));
3942
- // TODO(bleroux): from M3 specification, it should be theme.colorScheme.onSurface.
3943
- final Color expectedColor = theme.hintColor;
3931
+ final Color expectedColor = theme.colorScheme.onSurfaceVariant;
3944
3932
// TODO(bleroux): from M3 specification, it should be textTheme.bodyLarge.
3945
3933
final TextStyle expectedStyle = theme.textTheme.titleMedium!.copyWith(color: expectedColor);
3946
3934
expect(getHintStyle(tester), expectedStyle);
0 commit comments