Closed Zeinab-Kouhkan closed 1 week ago
Hi @Zeinab-Kouhkan Your sample code is a production code with undefined parameters. Please provide a minimal sample code that can reproduce the issue.
Also, I see you are using an old Flutter version. Can you try upgrading to the latest stable version 3.22.2 and retry?
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. If you find this problem please file a new issue with the same description, what happens, logs and the output of 'flutter doctor -v'. All system setups can be slightly different so it's always better to open new issues and reference the related ones. Thanks for your contribution.
Steps to reproduce
I test it on on devices with android 11,9, .. and it work.
in debug mode it is ok on android 14 SMA73 but in release mode it doesn't work.
Expected results
Light satuscolor with dark icon
Actual results
doesn't change status color in release model
Code sample
Code sample
```dart ThemeData( useMaterial3: true, pageTransitionsTheme: PageTransitionsTheme(builders: {TargetPlatform.android: SlideRightTransitions(),}), scaffoldBackgroundColor: AppColors.colors.scaffold, switchTheme: SwitchThemeData( trackColor: MaterialStateProperty.all(AppColors.colors.border), trackOutlineWidth: MaterialStateProperty.all(0), trackOutlineColor: MaterialStateProperty.all(Colors.transparent)), canvasColor: AppColors.colors.onPrimary, appBarTheme: AppBarTheme( systemOverlayStyle: SystemUiOverlayStyle.light.copyWith( systemNavigationBarColor: AppColors.colors.onPrimary, systemNavigationBarIconBrightness: Brightness.dark, statusBarColor:AppColors.colors.onPrimary, statusBarBrightness: Brightness.light, statusBarIconBrightness: Brightness.dark, ), scrolledUnderElevation: 0), buttonTheme:ButtonTheme.of(context).copyWith( alignedDropdown: true, ), textTheme: buildTextTheme(locale), colorScheme: ColorScheme.fromSwatch( primarySwatch: AppColors.materialColor.primary) .copyWith( secondary: AppColors.colors.secondary, ), radioTheme: RadioThemeData( fillColor: MaterialStateProperty.resolveWith( (states) => states.contains(MaterialState.selected) ? AppColors.colors.secondary : AppColors.colors.label, ), ), checkboxTheme: CheckboxThemeData( side: BorderSide(color: AppColors.colors.label, width: 1.75)), cardTheme: const CardTheme(surfaceTintColor: Colors.transparent)) ```Screenshots or Video
Screenshots / Video demonstration
I expected it: ![image](https://github.com/flutter/flutter/assets/44530069/0e31d481-dd17-4497-92a4-f99b912f040e) but got it : ![image](https://github.com/flutter/flutter/assets/44530069/95b4306c-a665-4425-85b9-3cdf2f697a56)Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
Doctor output
```console Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.16.8, on Microsoft Windows [Version 10.0.19045.4529], locale en-US) [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [√] Chrome - develop for the web [X] Visual Studio - develop Windows apps X Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [√] Android Studio (version 2023.2) [√] VS Code (version 1.90.1) [√] Connected device (6 available) [√] Network resources ! Doctor found issues in 1 category. ```