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

onDragCompleted return unexpected lowerValue? #135

Open
tyfoo1603 opened this issue Apr 26, 2023 · 1 comment
Open

onDragCompleted return unexpected lowerValue? #135

tyfoo1603 opened this issue Apr 26, 2023 · 1 comment

Comments

@tyfoo1603
Copy link

Hi, here is the issue I am facing.
When I tap once and release on the same location, the lowerValue return from onDragStarted & onDragCompleted is different.

Kindly refer screenshot to visualise the scenario:
https://photos.app.goo.gl/M9kcay5PEWZnTsqF9

For example, I tapped the area in between 100Mbps and 500Mbps and released.
onDragStarted lowerValue: 33.3336
onDragCompleted lowerValue: 0.0

As the result, the handler moved to 50Mbps when rebuilt.

Appreciate if anyone can help to verify is this a bug or is expected behaviour of xlider.
Would provide any info if required. Thanks.

Test environment:
flutterMode: profile & use physical device

Tested devices:
iPhone 13 Pro, Huawei Mate20 pro

Flutter Doctor -v:

[!] Flutter (Channel unknown, 3.3.9, on macOS 13.3.1 22E261 darwin-x64, locale en-MY)
    ! Flutter version 3.3.9 on channel unknown at /Users/michael/flutter
    ! Upstream repository unknown
    • Framework revision b8f7f1f986 (5 months ago), 2022-11-23 06:43:51 +0900
    • Engine revision 8f2221fbef
    • Dart version 2.18.5
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0-rc1)
    • Android SDK at /Users/michael/Library/Android/sdk
    • Platform android-33, build-tools 32.0.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
    • All Android licenses accepted.

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

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

[✓] Android Studio (version 2020.3)
    • 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.10+0-b96-7281165)
@Ali-Azmoud
Copy link
Owner

Hi. Could you provide a sample code so that I can reproduce the error?

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