Skip to content

[Bug]: 6.3.0 fails to work due to deoration.filter issue #223

@evanrich

Description

@evanrich

Version

6.3.0

Flutter Doctor Output

[√] Flutter (Channel stable, 3.38.9, on Microsoft Windows [Version 10.0.26200.7705], locale en-US) [832ms]
    • Flutter version 3.38.9 on channel stable at C:\flutter\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 67323de285 (4 weeks ago), 2026-01-28 13:43:12 -0800
    • Engine revision 587c18f873
    • Dart version 3.10.8
    • DevTools version 2.51.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager, omit-legacy-version-file,
      enable-lldb-debugging

[√] Windows Version (11 Home 64-bit, 25H2, 2009) [1,707ms]

[√] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [3.4s]
    • Android SDK at C:\Users\evanr\AppData\Local\Android\sdk
    • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
    • All Android licenses accepted.

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

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.26) [387ms]
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36930.0
    • Windows 10 SDK version 10.0.26100.0

[√] Connected device (3 available) [291ms]
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.26200.7705]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 145.0.7632.117
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 145.0.3800.70

[√] Network resources [290ms]
    • All expected network resources are available.

• No issues found!

What platforms are you seeing the problem on?

Android

What happened?

when using 6.3.0, my app fails to build, complaining about:

../../AppData/Local/Pub/Cache/hosted/pub.dev/persistent_bottom_nav_bar_v2-6.3.0/lib/components/decorated_navbar.dart:22:38: Error: The argument type 'ImageFilter?' can't be assigned to the parameter type 'ImageFilter'.
 - 'ImageFilter' is from 'dart:ui'.
                  filter: decoration.filter,
                                     ^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 1m 45s

The offending line looks to be this that was included in 6.3.0:
4598baf#diff-3adbdb99a3c97c27b2c508ad096f69cfc3e3c3b887d759ff776e713060d48026R22

Steps to reproduce

Use 6.3.0
run flutter clean && flutter build apk
fails.

Code to reproduce the problem

the error isn't in code, it's directly in the dependency

Relevant log output

../../AppData/Local/Pub/Cache/hosted/pub.dev/persistent_bottom_nav_bar_v2-6.3.0/lib/components/decorated_navbar.dart:22:38: Error: The argument type 'ImageFilter?' can't be assigned to the parameter type 'ImageFilter'.
 - 'ImageFilter' is from 'dart:ui'.
                  filter: decoration.filter,
                                     ^
Target kernel_snapshot_program failed: Exception


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

BUILD FAILED in 1m 45s

Screenshots

No response

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