smooth_page_indicator-2.0.1/lib/src/painters/customizable_painter.dart:146:11: Error: The method 'translateByDouble' isn't defined for the class 'Matrix4'.
smooth_page_indicator: ^2.0.1
❯ fvm flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.27.4, on Microsoft Windows [版本 10.0.26200.7309], locale zh-CN) [√] Windows Version (Installed version of Windows is version 10 or higher) [!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [√] Android Studio (version 2025.2.2) [√] VS Code, 64-bit edition (version 1.106.3) [!] Proxy Configuration ! NO_PROXY is not set [√] Connected device (1 available) [√] Network resources
! Doctor found issues in 2 categories.
it seems your vector_mat lib is out of date, try to upgrade it.
try this
flutter packages upgrade vector_math
Same as OP, I use an old version of Flutter (because the recent ones bring a whole set of issues with the thread merge) so the vector_math lib is also old and cannot be upgraded. smooth_page_indicator should define the minimum flutter version compatible in its pubspec.
@deckerst you could downgrade smooth_page_indicator as well.
@deckerst you could downgrade
smooth_page_indicatoras well.
Indeed that's what I did. But it's better for everyone if the constraints are defined in the package, so that pub can resolve the right versions by itself.