Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
118 views

So I am completely new to flutter, and want create an app. I found that you can define a theme for the entire app, so I want to give it a go. Unfortunately though I don't seem to have any real control ...
munHunger's user avatar
  • 3,115
2 votes
0 answers
145 views

Theming is defined in the MaterialApp widget in Flutter. For example: MaterialApp( // ... theme: AppTheme(...), highContrastTheme: AppTheme(...), darkTheme: AppTheme(...), ...
Dove668's user avatar
  • 55
-1 votes
2 answers
57 views

i wanna use custom textTheme inside the ThemeData but this custom text will not be apply to all Text widget for instance : Text inside the ListTile will get style from inherit Widget which is not what ...
rebaz jabar's user avatar
0 votes
0 answers
68 views

The color of choice chips have a blury effect and does not show real color. Why this happen? Choice chips : if (index == 0) { return ChoiceChip( ...
zex_rectooor's user avatar
  • 1,040
0 votes
0 answers
27 views

I find I often have the same problem. I am making a widget, and I want it to look "normal", which requires some manual tweak for some reason. In that case, I want to find out, "If I ...
Brian Thompson's user avatar
0 votes
1 answer
143 views

In my flutter app, I allow user to change the theme of the app using either Follow System, Light or Dark theme. But the status bar color doesn't change appropriately. My status bar icon color always ...
Mervin Hemaraju's user avatar
1 vote
1 answer
166 views

I have in my settings page the ability for the user to change the app theme at runtime, but I am running into some problems. The problem that I am using shared preferences with Riverpod to store the ...
Mervin Hemaraju's user avatar
0 votes
1 answer
200 views

I try Remove ripple effect on tab bar when tab or click on TabBar this answer : https://stackoverflow.com/questions/52914982/remove-highlight-when-flutters-tabbar-is-tapped#:~:text=That's%20the%...
Erfan's user avatar
  • 3,393
1 vote
1 answer
65 views

I'm experiencing an issue in my Flutter app where the app launches with an incorrect cursor color (e.g., purple instead of the expected color). This issue persists through the login process, and only ...
Whirley Paul's user avatar
0 votes
1 answer
65 views

I'm trying to change or quit the default color when hovering a widget in Flutter web, in specific with showMenu function like this: ` items: items.map( (item) { return PopupMenuItem<String>...
Erick Galván's user avatar
0 votes
2 answers
413 views

I have a problem with theming a flutter app. I cannot get the primary color from of the theme. Here is the example code import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); }...
pasanmaduranga's user avatar
0 votes
2 answers
90 views

I use the following code to implement multi them in my app, when I changed the them and select a new one, the whole app is changed correctly, except the current view which not changed, what the ...
Ali A. Jalil's user avatar
0 votes
1 answer
108 views

I'm learning Flutter, and I'm trying to define a custom color scheme for my app. I'm using ColorScheme.light().copyWith(), since I only want to override a few colors. I've defined a new primary color ...
Hrushikesh Vaidya's user avatar
0 votes
2 answers
556 views

I'm trying to add a property to TextTheme that I can modify in my ThemeData. I've declared the following extension extension CustomStyles on TextTheme{ TextStyle get disabledText => const ...
QuantumTiger's user avatar
  • 1,008
0 votes
2 answers
196 views

I am currently working on a Flutter project and I have defined a light theme in my app_theme.dart file as follows: final ThemeData lightTheme = ThemeData( useMaterial3: true, fontFamily: "...
Bishal Rumba's user avatar
-1 votes
2 answers
101 views

I would like to remove the background color of the default backbutton. I have below configurations but it still appears like in the photo. TIA for all inputs. hightlightColor: Colors.transparent, ...
deandrehaijiel's user avatar
0 votes
1 answer
108 views

This is a custom theme code that I created in the main page. It didnt work, but when I use it indivually with a specific widget it works import 'package:flutter/material.dart'; import 'package:theme/...
Ziad's user avatar
  • 1
1 vote
1 answer
127 views

i'm new to flutter, i learn from this tutorial to setup a theme i successfully to create a light and dark theme when i code the theme directly inside the main.dart, but when i code the theme inside ...
faiz albar risi's user avatar
0 votes
1 answer
75 views

I've created a custom set of colors to reuse in a Flutter app, but I'm getting an error when I try to use the colors to set the scaffoldBackgroundColor color value. The argument type 'UIColor' can't ...
BobbyZHolmes's user avatar
1 vote
1 answer
1k views

I am building a flutter mobile app and I would like the status bar and navigation bar themes to match the current theme of the app. The app theme can be changed by the user. Examples in the ...
Tindi's user avatar
  • 71
54 votes
6 answers
28k views

I upgraded my Flutter version to 3.16. When I run my app, I notice a lot of changes in the UI. The app bar doesn't have shadows anymore. When I scroll, the app bar is now tinted with a color and ...
Dhafin Rayhan's user avatar
1 vote
1 answer
73 views

import 'package:businesscard/cubits/get_weather_cubits/get_weather_cubit.dart'; import 'package:businesscard/cubits/get_weather_cubits/get_weather_states.dart'; import 'package:businesscard/screens/...
ibrahim alnagar's user avatar
1 vote
1 answer
1k views

In Flutter, one can apply a theme to the app using ThemeData class. But there two propeties of this class that confuses me: ColorScheme and ColorSchemeseed. What's the difference between these two ...
AhmadAkramDev's user avatar
1 vote
2 answers
4k views

I'm currently working on a Flutter project and trying to incorporate Theming into my app. Specifically, I want to apply Theming to the CircularProgressIndicator.adaptive() widget. While I've ...
Mark_ObjC's user avatar
0 votes
1 answer
94 views

I am trying to apply a custom buttonStyle inside of ThemeData for my Flutter App. Everything works fine, but the BorderSide is ignored and is always the default (BorderSide.color = Colors.black and ...
Florian's user avatar
  • 276
0 votes
2 answers
151 views

I'm trying to use Montserrat with a custom color on my DropdownButton but for some reason, the TextStyle is not being applied. Here is my code: DropdownButton( value: value, dropdownColor: ...
Rafael_O's user avatar
0 votes
1 answer
2k views

I have defined a separate class for TextTheme and defined the desired textStyle, assigning it to the ThemeData for both light and dark themes, as shown in the image. However, the textColor is not ...
Hossein Saeedi's user avatar
0 votes
1 answer
743 views

I have a Flutter app that uses showDateRangePicker to pick a date range. When I pick a range, though, the color in between the picked dates is somehow cyan. I'm assuming it's one of the standard ...
Sergen Huddle App Captain's user avatar
0 votes
0 answers
169 views

I am having an issue with Flutter's GetX package when using the Get.changeTheme() method. The method works perfectly fine when running the app in debug mode on the Android emulator. However, after I ...
Abdul moiz's user avatar
0 votes
1 answer
103 views

I am using Flutter + Dart to make a mobile app. I have defined a CustomTheme class which looks like the following class CustomTheme { static ThemeData lightTheme = ThemeData( primaryColor: ...
Acheese's user avatar
  • 101
0 votes
1 answer
319 views

I am using ThemeData to implement dart/light theme I have to write Theme.of(context).textTheme in each place under the build method to get access to the textTheme. Is there a way which can solve this ...
As Kira's user avatar
1 vote
0 answers
884 views

i am trying to create a way to start my app with system theme and then giving user a switch to choose between light mode and dark mode in my main.dart file import 'package:edubro/pages/Attendance/...
Abhishek kushwaha's user avatar
1 vote
1 answer
2k views

Im applying a global theme to the IconButtons within a MaterialApp, so I set up an iconButtonTheme. This theme handles color changes to the IconButtons when the IconButton is disabled. This appears ...
sails's user avatar
  • 21
0 votes
0 answers
267 views

I'm tring to change labels color depends on if it selected or not, but flutter sets 1 color for all NavigationBarTheme( data: NavigationBarThemeData( backgroundColor: Theme....
Morgan Windy's user avatar
2 votes
2 answers
2k views

I'm trying to use a dark theme in a Flutter app but everything seems wrong. I'm using dark theme like this. ThemeData darkTheme = ThemeData.from( useMaterial3: true, colorScheme: ColorScheme.dark( ...
Emre's user avatar
  • 81
0 votes
1 answer
953 views

What are differences between text theme of material specification 2014 and text theme of material specification 2018 and 2021? If you update flutter SDK to latest version, you will receive several ...
GOKU's user avatar
  • 1
0 votes
1 answer
986 views

there is a dark/light theme toggle function in this snap of code. There is no error when I compile, debuging this code. But It doesn't work. For example, I never define scaffoldbackgroundColor(...
John Han's user avatar
0 votes
1 answer
98 views

themeData.copyWith( colorScheme: //... scaffoldBackgroundColor: //... textTheme: const TextTheme( headline1: TextStyle(/*...*/), subtitle1: TextStyle(/*...*/), ...
sharbel okzan's user avatar
1 vote
1 answer
195 views

import 'package:flutter/material.dart'; import 'package:my_application_1/pages/home_page.dart'; void main() { runApp(my_application_1()); } class my_application_1 extends StatelessWidget { @...
Ayushman Singh's user avatar
0 votes
0 answers
167 views

I have created a toggle switch in the appBar but its not visible because of the code. It changes themes between light to dark when clicked main.dart class MyApp extends StatelessWidget { static ...
Devendiran's user avatar
2 votes
1 answer
626 views

In Flutter documentation, it's given The Material widgets Switch, SwitchListTile, Checkbox, CheckboxListTile, Radio, RadioListTile now use ColorScheme.secondary color for their toggleable widget. ...
krishnaacharyaa's user avatar
-1 votes
1 answer
2k views

Many flutter widgets forces their child to inherit their style, like: ElevatedButton( child: Text("Click Me."), onPressed: (){}, ); this ElevatedButton() will force its Text() child ...
Ahmed Mahdy's user avatar
2 votes
1 answer
343 views

I'm building an App for iOS on Flutter. in the ColorScheme there's the brightness property and on Windows there's no error and it works, but when i open the code on the mac OS it says "undefined ...
ssa's user avatar
  • 31
0 votes
2 answers
1k views

My app uses dark theme as ThemeData.dark().copyWith( ... ), that defined for theme property of MaterialApp. Since the keyboardAppearance property only works on iOS, it doesn't seem to be possible to ...
rozerro's user avatar
  • 7,376
2 votes
1 answer
1k views

I've seen some posts recommending to set fontSize or TextStyle for Text widget using Theme // textStyle Theme.of(context).textTheme.bodySmall OR // fontSize Theme.of(context).textTheme.bodySmall....
ASAD HAMEED's user avatar
  • 2,740
0 votes
2 answers
740 views

What are the advantages of using theme extension for storing custom colors instead of class containing static consts? class AppColors { static const Color brandColor = Color(0xFF1E88E5); ...
Chris's user avatar
  • 1,057
13 votes
3 answers
3k views

In my AppBar the title is displayed with white text, but the icons are a dark grey or something. I Would like to have the icons white, too. But the colors in the icon themes have no effect! Not when ...
SouthbayDev's user avatar
3 votes
1 answer
969 views

I'm new to flutter, I'm building an app using bloc for state management. I'm trying to toggle theme mode using IconButton on the appBar but the theme won't change when I press the button. how can I ...
Ahmed Thomas's user avatar
2 votes
2 answers
1k views

I am curently learning Flutter on the Maximilian Udemy Course, and when I reached the section when I have to use the textTheme property of the AppBarTheme class, it's telling me that it's deprecated. ...
Mikelenjilo's user avatar
0 votes
1 answer
41 views

I want to change the color based on the theme mode. In AppTheme I mention var class AppTheme { static AppTheme of(BuildContext context) => DarkModeTheme(); late Color primaryColor; late ...
dinesh balan's user avatar