Flutter - why is overridden theme not applied to some widgets while it is to others?

I noticed that overriding the theme by <code>Theme(data: Theme.of(context).copyWith(xxx: ...), child: ...)</code> does not affect some widgets. I came across similar p...

Flutter: Change Statusbar Text Color not working properly

Almost all the Q/A referred on Stackoverflow related to the same topic but didn't get proper solutions. Main Question: My app having the primary color <strong>b...

Why doesnt code generation work when extending a class from another package?

I'm working on a package that allows you to create a custom <code>Theme</code> in Flutter. For this I'm using code generation to create all the necessary classes you n...

Apply ButtonStyle Properties to All Buttons Globally

I've implemented several long ListViews containing ElevatedButtons in my flutter project, and would now like to apply various ButtonStyle properties to all of them. I...

Better approach to set font size in flutter

I've seen some posts recommending to set <code>fontSize</code> or <code>TextStyle</code> for <code>Text</code> widget using <code>Theme</code> <pre><code>// textSt...

Why Doesnt Flutter Have ShapeScheme for theming shape in app? Are they going to?

Flutter has made the material design so easy, and the theming is fantastic, there seems to be made of Color, Typography, Shape and Iconography. I think flutter has don...

How to overwrite textButtonTheme?

I have defined theme for TextButton. <pre><code>theme: ThemeData( visualDensity: VisualDensity.adaptivePlatformDensity, brightness: Brightn...

body2 is deprecated and shouldnt be used. This is the term used in the 2014 version of material design. - warning message in flutter

If you update flutter SDK from version <strong>v1.12.13</strong> to any version after <strong>v1.13.8</strong>, you will receive several warning messages related to te...

Change contrast with slider in flutter

I want centralise contrast theme with change according to slider value. I want do as like <a href="https://i.stack.imgur.com/x1jbN.png" rel="nofollow nor...

Acces primarySwatch of ThemeData in Flutter

I'm using two different <code>ThemeData</code> classes for switching between dark and light mode. However I am using a color scheme which requires me to access the col...

How to change bgcolor of space below bottom navigation in Flutter

When using Gestures for Navigation, how can I change the background color of the area beneath bottom Navigation. <a href="https://i.stack.imgur.com/NmGMP.jpg" r...

How to change the icon according to the theme in flutter

I'm using provider for managing the dark and light mode along with shared preferences to save it. I have successfully managed to save the selected theme but I'm unable...

Set Color to Text Widget in App universally in flutter without mentioning the theme inside the Widget everytime

I am new to flutter and trying out things. I replaced the Scaffold Widget with a Center Widget (Just messing around). All text had a Yellow underline, to overc...

Changing the color latex render in Flutter

I was trying to render a latex document using flutter_tex package on a dark background(Not in Dark Mode) so the render must be white for contrast reasons.....

Getting failed assertion with setting brightness: Brightness.dark for darkTheme

I'm getting this error: <pre><code>'package:flutter/src/material/theme_data.dart': Failed assertion: line 412 pos 12: 'colorScheme?.brightness == null || brightnes...