Skip to content

[master, v1.12.3-pre.49] PageView's last page no longer snaps when viewportFraction is set to less than 1 #45096

Closed

Description

@januwA

Steps to Reproduce

PageController's viewportFraction property is set to less than 1, and there is a bounce when switching pages.

https://gist.github.com/januwA/8bfdbcfe3436231c48f437a3e72729e6

flutter-bug

λ flutter doctor -v
[√] Flutter (Channel master, v1.12.3-pre.49, on Microsoft Windows [Version 10.0.18362.476], locale zh-CN)
    • Flutter version 1.12.3-pre.49 at D:\my-tools\flutter
    • Framework revision 21e6fe1ddf (8 hours ago), 2019-11-17 23:39:51 -0500
    • Engine revision 3261324fab
    • Dart version 2.7.0

[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at D:\my-tools\Android\Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = D:\my-tools\Android\Sdk
    • Java binary at: D:\my-tools\Android\AndroidStudio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    X Android license status unknown.
      Try re-installing or updating your Android SDK Manager.
      See https://developer.android.com/studio/#downloads or visit https://flutter.dev/setup/#android-setup
      for detailed instructions.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 3.5)
    • Android Studio at D:\my-tools\Android\AndroidStudio
    • Flutter plugin version 41.0.2
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)

[√] Connected device (3 available)
    • SM G8750   • c5976a52   • android-arm64  • Android 9 (API 28)
    • Chrome     • chrome     • web-javascript • Google Chrome 78.0.3904.97
    • Web Server • web-server • web-javascript • Flutter Tools

! Doctor found issues in 1 category.

Activity

  1. changed the title [-]PageController's viewportFraction property setting is less than 1 and a bug has occurred.[/-] [+]PageController's viewportFraction property is set to less than 1, with an error[/+] on Nov 18, 2019
  2. iapicca commented on Nov 18, 2019

    @iapicca

    Hi @januwA
    I've tested your code, it works as intended with flutter channel dev and below
    but I'm experiencing the issue you described with flutter channel master
    thank you for the information you provided

  3. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    a: imagesLoading, displaying, rendering images
    c: renderingUI glitches reported at the engine/skia or impeller rendering level
    on Nov 18, 2019
  4. changed the title [-]PageController's viewportFraction property is set to less than 1, with an error[/-] [+][master, v1.12.3-pre.49] PageController's viewportFraction property is set to less than 1, with an error[/+] on Nov 18, 2019
  5. januwA commented on Nov 18, 2019

    @januwA
    Author

    Thanks @iapicca 😃
    I will wait for the flutter channel master update.

  6. added
    c: regressionIt was better in the past than it is now
    f: scrollingViewports, list views, slivers, etc.
    and removed
    a: imagesLoading, displaying, rendering images
    on Nov 20, 2019
  7. HansMuller commented on Nov 21, 2019

    @HansMuller
    Contributor

    This issue was also reported here: #45339; includes a simple test case.

    CC @goderbauer

  8. changed the title [-][master, v1.12.3-pre.49] PageController's viewportFraction property is set to less than 1, with an error[/-] [+][master, v1.12.3-pre.49] PageView's last page no longer snaps when viewportFraction is set to less than 1[/+] on Nov 25, 2019
  9. tvolkert commented on Dec 4, 2019

    @tvolkert
    Contributor

    This has been cherry-picked into the release candidate, so removing the blocker label.

  10. github-actions commented on Aug 25, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  11. locked as resolved and limited conversation to collaborators on Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

c: regressionIt was better in the past than it is nowc: renderingUI glitches reported at the engine/skia or impeller rendering levelf: scrollingViewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.waiting for PR to land (fixed)A fix is in flight

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions