Skip to content

Theme extensions not able to be accessed in feedbackBuilder #370

@btrautmann

Description

@btrautmann

Version

3.2.0

Library

feedback

Flutter channel

stable

Flutter version

3.29.2

Platform

Android

Details

When using the feedbackBuilder parameter to build a custom feedback interface, components that make use of ThemeExtensions are unable to do so because FeedbackThemeData does not propagate extensions.

This is similar to #317, but feels a separate issue is warranted because that thread suggests that this conflict between BetterFeedback and the host Theme is "fixed", but the root cause still exists and this can't really be worked around AFAIK.

Steps to reproduce

In the default state (useExtensions set to true) you will get a runtime Exception when showing feedback. Flip useExtensions to false in main.dart and no issues will occur (because the extension is not accessed).

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.29.2, on macOS 15.5 24F74 darwin-arm64, locale en-US) [2.3s]
    • Flutter version 3.29.2 on channel stable at /Users/brandontrautmann/fvm/versions/3.29.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision c236373904 (4 months ago), 2025-03-13 16:17:06 -0400
    • Engine revision 18b71d647a
    • Dart version 3.7.2
    • DevTools version 2.42.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1) [2.3s]
    • Android SDK at /Users/brandontrautmann/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • ANDROID_SDK_ROOT = /Users/brandontrautmann/Library/Android/sdk
    • Java binary at: /Users/brandontrautmann/.jenv/versions/17/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment Temurin-17.0.15+6 (build 17.0.15+6)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [3.5s]
    • Xcode at /Applications/Xcode-16.3.0.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

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

[✓] Android Studio (version 2025.1) [8ms]
    • 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 21.0.6+-13391695-b895.109)

[✓] VS Code (version 1.102.1) [7ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.112.0

[✓] Connected device (4 available) [7.6s]
    • sdk gphone64 arm64 (mobile)     • emulator-5554         • android-arm64  • Android 12 (API 32) (emulator)
    • macOS (desktop)                 • macos                 • darwin-arm64   • macOS 15.5 24F74 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin         • macOS 15.5 24F74 darwin-arm64
    • Chrome (web)                    • chrome                • web-javascript • Google Chrome 138.0.7204.158

[✓] Network resources [838ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions