fluttercandies / extended_image

A powerful official extension library of image, which support placeholder(loading)/ failed state, cache network, zoom pan image, photo view, slide out page, editor(crop,rotate,flip), paint custom etc.
https://fluttercandies.github.io/extended_image/
MIT License
1.88k stars 498 forks source link

[Bug report] 屏幕旋转会自动飞到下一张 #643

Open gghh0408 opened 6 months ago

gghh0408 commented 6 months ago

Version

8.1.1

Platforms

dart, Android, iOS

Device Model

小米14

flutter info

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
[√] Flutter (Channel stable, 3.13.7, on Microsoft Windows [版本 10.0.19044.2846], locale zh-CN)
    • Flutter version 3.13.7 on channel stable at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2f708eb839 (3 months ago), 2023-10-09 09:58:08 -0500
    • Engine revision a794cf2681
    • Dart version 3.1.3
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

[√] Windows Version (Installed version of Windows is version 10 or higher)

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at C:\sdk
    • Platform android-34, build-tools 33.0.2
    • Java binary at: C:\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[X] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[X] Visual Studio - develop Windows apps
    X Visual Studio not installed; this is necessary to develop Windows apps.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2023.2)
    • Android Studio at C:\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-10027231)

[√] Connected device (3 available)
    • 23127PN0CC (mobile) • 10.4.146.150:5555 • android-arm64  • Android 14 (API 34)
    • Windows (desktop)   • windows           • windows-x64    • Microsoft Windows [版本 10.0.19044.2846]
    • Edge (web)          • edge              • web-javascript • Microsoft Edge 112.0.1722.68

[!] Network resources
    X A cryptographic error occurred while checking "https://github.com/": Handshake error in client
      You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware
      installed on your computer.

! Doctor found issues in 4 categories.

How to reproduce?

图片本身长度足够的话,调用屏幕旋转SystemChrome.setPreferredOrientations([DeviceOrientation.landscapeLeft]) 后,图片自动到下一张去了。。。。onPageChanged旋转后自动触发,该怎么搞? ExtendedImageGesturePageView.builder( itemBuilder: showItem, itemCount: widget.allMediaList.length, controller: pageController, onPageChanged: (int index) { currentPage = index; }, scrollDirection: Axis.horizontal, )

Logs

No response

Example code (optional)

No response

Contact

No response

zmtzawqlp commented 6 months ago

不支持屏幕旋转