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

Slider stopped working for web #12

Open
hwde opened this issue Feb 9, 2022 · 0 comments
Open

Slider stopped working for web #12

hwde opened this issue Feb 9, 2022 · 0 comments

Comments

@hwde
Copy link

hwde commented Feb 9, 2022

After upgrade of flutter to a more recent version the slider stops sliding in web/html when used without "control". I use it as follows:

Swiper(
        itemBuilder: (BuildContext context, int index) {
          switch (index) {
            case 0:
              return InfoPage1();
            case 1:
              return InfoPage2();
            ...
            case 6:
              return InfoPage7();
            default:
              return const Padding(padding: EdgeInsets.all(12));
          }
        },
        itemCount: 7,
        scale: 0.9,
        pagination: const SwiperPagination(
            builder: DotSwiperPaginationBuilder(
                size: 18.0,
                activeSize: 18.0,
                space: 9.0,
                color: Colors.black12)),
      ),

output of flutter doctor is:

/usr/local/Caskroom/flutter/2.5.3/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, 2.10.0, on macOS 12.2 21D49 darwin-x64, locale de-DE)
    • Flutter version 2.10.0 at /usr/local/Caskroom/flutter/2.5.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5f105a6ca7 (8 days ago), 2022-02-01 14:15:42 -0800
    • Engine revision 776efd2034
    • Dart version 2.16.0
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /Applications/android-sdk
    • Platform android-31, build-tools 30.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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 11.0.11+0-b60-7590822)

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (1 available)
    • Chrome (web)           • chrome                    • web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Any idea on how to fix it? Before a "mouse click and move left/right" initiates a "slide" - now it doesn't notice the mouse click.

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

1 participant