Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gghh0408 opened this issue Dec 28, 2023 · 1 comment
Open

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

gghh0408 opened this issue Dec 28, 2023 · 1 comment

Comments

@gghh0408
Copy link

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

@gghh0408 gghh0408 changed the title [Bug report] [Bug report] 屏幕旋转会自动飞到下一张 Dec 28, 2023
@zmtzawqlp
Copy link
Member

不支持屏幕旋转

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants