Skip to content

StreamPollResultsDialog: AppBar back button/icon color not themeable #2484

@marcinFDT

Description

@marcinFDT

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

Android

What version are you using?

stream_chat_flutter: 9.22.0

What happened?

StreamPollResultsDialog builds an AppBar without specifying foregroundColor / iconTheme / actionsIconTheme.
As a result, the back arrow (and other AppBar icons) inherit color from the ambient Theme/IconTheme, which can lead to:

  • back arrow having the same color as the AppBar background (low/no contrast),
  • visible flicker during route push (icon color changes after the first frame due to theme overlays).

This makes the Poll Results screen inconsistent with other Stream UI screens where icon colors are correctly derived from Stream theme.

Steps to reproduce

1. Use Stream Chat UI with StreamChannel and LIGHT theme.
2. use widget StreamMessageListView() and Open Poll Results
3. Observe the AppBar back arrow:
• in some theme combinations it matches the background (invisible),
• or it briefly shows one color and then changes after a frame.

Supporting info to reproduce

StreamChat(
          client: widget.client,
          streamChatThemeData: StreamChatThemeData.light()
          child: child!,
        )

Image
Image

Relevant log output

Flutter analyze output

Flutter doctor output

[✓] Flutter (Channel stable, 3.38.5, on macOS 26.2 25C56 darwin-arm64, locale en-PL) [483ms]
    • Flutter version 3.38.5 on channel stable at /Users/123/Library/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f6ff1529fd (6 weeks ago), 2025-12-11 11:50:07 -0500
    • Engine revision 1527ae0ec5
    • Dart version 3.10.4
    • 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,
      omit-legacy-version-file, enable-lldb-debugging

[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0-rc4) [1,927ms]
    • Android SDK at /Users/123/Library/Android/sdk
    • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
    • Platform android-36, build-tools 36.0.0-rc4
    • ANDROID_HOME = /Users/123/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/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 Java(TM) SE Runtime Environment (build 17.0.10+11-LTS-240)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 26.2) [1,034ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

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

[✓] Connected device (4 available) [9.5s]
    • SM A536B (mobile)        • RFCT31KSYHK               • android-arm64  • Android 16 (API 36)
    • iPhone (Marcin) (mobile) • 00008120-000A04210AEB401E • ios            • iOS 26.2 23C55
    • macOS (desktop)          • macos                     • darwin-arm64   • macOS 26.2 25C56 darwin-arm64
    • Chrome (web)             • chrome                    • web-javascript • Google Chrome 144.0.7559.60
    ! Error: Browsing on the local area network for Apple Watch (Marcin). Ensure the device is unlocked and discoverable via Bluetooth. (code -27)

[✓] Network resources [7.3s]
    • All expected network resources are available.

• No issues found!

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions