Issue Many flutter widgets forces their child to inherit their style, like: ElevatedButton( child: Text("Click Me."), onPressed: (){}, ); this ElevatedButton() will force its Text() child to inherit a specific text color, weight and so on… My question is how
Continue readingTag: flutter-theme
Changing the themeColor of CheckBoxListTile globally using material3
Issue In Flutter documentation, it’s given The Material widgets Switch, SwitchListTile, Checkbox, CheckboxListTile, Radio, RadioListTile now use ColorScheme.secondary color for their toggleable widget. ThemeData.toggleableActiveColor is deprecated and will eventually be removed. But CheckboxListTile is using ColorScheme.primary for the toggleableActiveColor instead
Continue readingDifferences of using ThemeExtension vs class with static theme
Issue Flutter 3 is out and I’ve been experimenting a little. I have used the ThemeExtension yt ref: https://www.youtube.com/watch?v=8-szcYzFVao api ref: https://api.flutter.dev/flutter/material/ThemeData/extensions.html and its great. However I’m starting to realize and ask myself I could have done the same result
Continue readingWhy tabs text are black in flutter tabs dark mode?
Issue Have a example project with tabs but the tabs text are black with dark gray background, i need chose manualy white text color for each theme or is automatic? The code: import ‘package:flutter/material.dart’; void main() { runApp(const MyApp()); }
Continue readingHow to Modify FlutterFire UI Accent Colour
Issue I’ve been struggling with attempting to modify the accent colour in FlutterFire UI. Namely, I’d like to change the blue accent colour here to a different material colour, such as purple. I’ve messed around with the app theming to
Continue readingWhile using GetMaterialApp fontFamily for the Theme is not Changing
Issue I am using Getx for my state management. So When I Change MaterialApp to GetMaterialApp, the fontFamily switched back to the default. pubspec.yaml file flutter: uses-material-design: true fonts: – family: Sen fonts: – asset: assets/fonts/Sen-Regular.ttf weight: 300 – asset:
Continue readingThe method 'dark' isn't defined for the type 'ThemeData'
Issue I’m getting this errror while following a lecture. ThemeData.dark() is not working properly. import ‘package:zoom_clone/screens/login_screen.dart’; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp(
Continue readingHow to change the Text color for a subtree in Flutter?
Issue I want that every Text inside a particular Widget will have a white color, although they all can have different sizes. I know I can change every singe Text to have a white color, but I want to make
Continue readingChange color of Theme
Issue I wanted to change the color of the counter in my app. I want to do that: change the color of the counter to blue when counter bigger than 0. if counter smaller than 0 change the color of
Continue readingSet Color to Text Widget in App universally in flutter without mentioning the theme inside the Widget everytime
Issue 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 overcome this I used TextDecoration Text( friend.name, style: TextStyle( decoration: TextDecoration.none
Continue reading