Questions tagged [themedata]

24 questions
0
votes
0 answers

The named parameter 'pageTransitionsTheme' isn't defined

How to update the following code to the last Flutter version? theme: ThemeData( primarySwatch: Colors.purple, accentColor: Colors.deepOrange, fontFamily: 'Lato', pageTransitionsTheme: PageTransitionsTheme( …
Hasani
  • 3,543
  • 14
  • 65
  • 125
0
votes
1 answer

Bottom Navigation Bar gradient icon in theme data

I want to use Linear Gradient icon in my bottom navigation bar for selected icon property can anybody tell me how to do it ! Thank You.
Melvin
  • 63
  • 1
  • 5
0
votes
2 answers

Flutter upgrade to 2.5.3 causing deprecated issue

I have been been able to upgrade my code from flutter 1.2.0 to 2.5.3. Still I am getting some deprecated warnings as mentioned below: info • 'buttonColor' is deprecated and shouldn't be used. No longer used by the framework, please remove any…
maddy
  • 4,001
  • 8
  • 42
  • 65
0
votes
1 answer

Can I use two ThemeData types?

I am trying to use these two ThemeData types in my MaterialApp. Check it out: return GetMaterialApp( debugShowCheckedModeBanner: false, title: 'DISH Connect', home: SiteLayout(), theme: ThemeData.light(), darkTheme: ThemeData.dark(), …
Jorge Zapata
  • 101
  • 7
0
votes
0 answers

Setting theme data for flutter app seems broken

I've tried everything I can think of to change the background color of my flutter app, but every time I run the app, the background is black. This is main.dart import 'package:firebase_core/firebase_core.dart'; import…
tdrsam
  • 527
  • 1
  • 8
  • 28
0
votes
3 answers

Flutter ThemeData

I want to set a ThemeData in my project but I can't set the correct background color. I think that the problem is about brightness.... theme: ThemeData( colorScheme: ColorScheme( primary: Color(0xFF0A0E21), onBackground:…
jonnyf
  • 21
  • 6
0
votes
0 answers

How to save ThemeData in flutter

In my Flutter app the user can define a custom Theme by picking the colors from color pickers. After that they can save the ThemeData to a list and use it. The problem is that after the app restarts the ThemeData added by the user disappers. How can…
KrekZsole
  • 35
  • 9
0
votes
1 answer

App's global ThemeData not working properly in flutter?

I want to use ThemeData's textTheme for global using in my app , And the textTheme is only change the font and color. But As you can see in the picture , there will be a obvious difference between the Text Widgets. How is this difference come ?…
ximmyxiao
  • 2,622
  • 3
  • 20
  • 35
-1
votes
1 answer

Flutter-Scaffold giving Black background instead of my custom color

I made an AppTheme class as follows : class AppTheme { static const Color white = Colors.white, white2 = Color(0x00fefefe), grey1 = Color(0x00e5e5e5), grey2 = Color(0x006b718b), grey3 = Color(0x004b4a5a), grey4 =…
ghosh_joy
  • 1,031
  • 1
  • 5
  • 10
1
2