Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AppBarTheme iconTheme color is not working when useMaterial3 #112379

Closed as not planned
@rddewan

Description

@rddewan

when useMaterial3 is enabled iconTheme: const IconThemeData( color: Colors.white, ), do not take effect

theme: ThemeData(
        useMaterial3: true,
        primarySwatch: Colors.green,
        appBarTheme:  AppBarTheme(
          color: Colors.green,
          iconTheme: const IconThemeData(
            color: Colors.white,
          ),          
          titleTextStyle: Theme.of(context).textTheme.headline6?.copyWith(
            color: Colors.white,
          ),
          systemOverlayStyle: const SystemUiOverlayStyle(
            systemNavigationBarColor: Colors.greenAccent,
            systemNavigationBarIconBrightness: Brightness.dark,
            statusBarIconBrightness: Brightness.light, // For Android
            statusBarBrightness: Brightness.dark,        
          ),
        ),
        bottomNavigationBarTheme: BottomNavigationBarThemeData(
          backgroundColor: Colors.grey[200],
          type: BottomNavigationBarType.shifting,
        ),
      ),

Flutter Doctor

[✓] Flutter (Channel stable, 3.3.2, on macOS 12.6 21G115 darwin-arm, locale en-TH)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.71.2)
[✓] Connected device (4 available)
[✓] HTTP Host Availability

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    r: duplicateIssue is closed as a duplicate of an existing issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions