smooth_page_indicator icon indicating copy to clipboard operation
smooth_page_indicator copied to clipboard

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'.

Open jackxuechen opened this issue 4 months ago • 4 comments

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.

jackxuechen avatar Dec 10 '25 07:12 jackxuechen

it seems your vector_mat lib is out of date, try to upgrade it. try this flutter packages upgrade vector_math

Milad-Akarie avatar Dec 10 '25 11:12 Milad-Akarie

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 avatar Dec 10 '25 19:12 deckerst

@deckerst you could downgrade smooth_page_indicator as well.

Milad-Akarie avatar Dec 11 '25 11:12 Milad-Akarie

@deckerst you could downgrade smooth_page_indicator as 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.

deckerst avatar Dec 11 '25 11:12 deckerst