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

Fix ScrollablePositionedList example app when targeting the web #532

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 4, 2024

  1. Fix example app when targeting the web

    I tried to run the provided example targeting Chrome, and it fails running, with the following error:
    
    ```
    ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
    The following RangeError was thrown building Builder:
    max must be in range 0 < max ≤ 2^32, was 0
    ```
    
    The example runs fine when randomMax is lowered by 1.
    
    <details>
    <summary>If it's any useful, here is the Flutter Doctor's diagnostics</summary>
    
     flutter doctor
    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel stable, 3.19.6, on macOS 14.4.1 23E224 darwin-x64, locale fr)
    [!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
        ✗ cmdline-tools component is missing
          Run `path/to/sdkmanager --install "cmdline-tools;latest"`
          See https://developer.android.com/studio/command-line for more details.
        ✗ Android license status unknown.
          Run `flutter doctor --android-licenses` to accept the SDK licenses.
          See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
    [✗] Xcode - develop for iOS and macOS
        ✗ Xcode installation is incomplete; a full installation is necessary for iOS and macOS development.
          Download at: https://developer.apple.com/xcode/
          Or install Xcode via the App Store.
          Once installed, run:
            sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
            sudo xcodebuild -runFirstLaunch
        ✗ CocoaPods not installed.
            CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
            Without CocoaPods, plugins will not work on iOS or macOS.
            For more info, see https://flutter.dev/platform-plugins
          To install see https://guides.cocoapods.org/using/getting-started.html#installation for instructions.
    [✓] Chrome - develop for the web
    [✓] Android Studio (version 2023.2)
    [✓] Connected device (2 available)
    [✓] Network resources
    
    ! Doctor found issues in 2 categories.
    </details>
    gsurrel authored May 4, 2024
    Configuration menu
    Copy the full SHA
    c9450e7 View commit details
    Browse the repository at this point in the history