Breaks on latest flutter stable due to use of deprecated property.
Closed this issue · 0 comments
kj415j45 commented
In Flutter 2.5, Google announced that ThemeData
's accent properties have been deprecated.
And recent flutter stable channel upgrade (3.10) did remove those properties (Introduced by multiple PR but specifically is flutter/flutter#120932
) and result a build breaks.
Target dart2js failed: Exception: /opt/hostedtoolcache/flutter/stable-3.10.0-x64/.pub-cache/git/city_pickers-29f3d39e1959e330cdbf0e893124481a1fb1c285/lib/src/cities_selector/cities_selector.dart:116:48:
Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
- 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/opt/hostedtoolcache/flutter/stable-3.10.0-x64/packages/flutter/lib/src/material/theme_data.dart').
textColor: widget.itemFontColor ?? theme.accentColor,
^^^^^^^^^^^
Error: Compilation failed.