Skip to content

ScrollController 问题 #102

@wwwlinkdp

Description

@wwwlinkdp

lutter: ---api-request--->url--> https://www.wanandroid.com/wxarticle/chapters/json queryParameters: {}
flutter: ---api-request--->url--> https://www.wanandroid.com/wxarticle/list/408/0/json queryParameters: {}

======== Exception caught by foundation library ====================================================
The following assertion was thrown while dispatching notifications for ScrollController:
ScrollController attached to multiple scroll views.
'package:flutter/src/widgets/scroll_controller.dart':
Failed assertion: line 109 pos 12: '_positions.length == 1'

这个问题 我在MAC 在scrollbar 滚动时候触发。

问题重现

  1. 选择 webchat tab(基本任何一个tab 也会发生)
  2. 手势滚动 两次

这是我的flutter doctor 信息

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, 2.0.5, on macOS 11.2.2 20D80 darwin-arm, locale en-HK)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from:
      https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK
      components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup
      for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1)
[✓] VS Code (version 1.55.2)
[✓] Connected device (2 available)

这个问题 在我window 当时在旧版本 FunAndroid_0.1.9 版本也会遇到

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions