Flutter: Tool for Creating a Theme

What I am searching: A tool or an open source project for creating a theme in flutter. There must be a collection of all widgets on an app to try a theme on. ...

Why has primaryVariant property been deprecated?

I am working on flutter a flutter project and using <code>MaterialApp</code> while providing the <code>ColorScheme</code> I used <code>primaryVariant</code> property b...

Changing the systemNavigationBarColor isnt working Flutter

I want to change the color of the systemNavigationBar based on the theme. I have been trying to change the color of the system navigation color of the app using...

Flutter build stream builder from app start

I need to load the saved themes from shared preference async from app start. After it loaded, replace the placeholder two themes. But below code failed because even it...

How to implement Dark mode and Light Mode in flutter?

I want to create a flutter app that has 2 light and dark mode themes that change by a switch in-app and the default theme is default android theme.<br> I need to pass...

Check if ThemeMode.system is dark or light

I'm working on a mobile application and I want to have ThemeMode.system by default, but I want to make it so that the user can change it. Then I have a IconButton that...

Override widget style in Flutter

<strong>Problem</strong>: How can I automatically (if possible) style all <a href="https://docs.flutter.io/flutter/material/RaisedButton-class.html" rel="noreferrer"><...

Flutter: Animated background color for the entire app when using persistent bottom navigation

I'm using the package <a href="https://pub.dev/packages/persistent_bottom_nav_bar_v2" rel="nofollow noreferrer">persistent_bottom_nav_bar_v2</a> to implement bottom ba...

Flutter set ThemeData background to LinearGradient

Is there a way to set the <code>backgroundColor</code> of <code>ThemeData</code> class to a LinearGradient? My app will be changing between different themes and I want...

How to make date picker Ok- and Cancel button text black in Dart Flutter?

I have a date picker in Flutter. I want to make the 'Ok' and 'Cancel' button text black. But I can't find the correct theme setting. Code displaying the date pi...

Light and dark theme Flutter

Hey guys I'm fairly new to Flutter and I'm trying to add a function that can switch the theme in my app from light to dark and visa versa, but I can't seem to get it r...

Flutter - Switching between dark and light modes

<pre><code>import 'package:flutter/material.dart'; ThemeData lightThemeData(BuildContext context) { return ThemeData.light().copyWith( primaryColor: Colors.teal,...

Select and Unselect (other) Buttons when clicked

I have a Grid.View.builder with Buttons inside. I want to be able to select just one Button at a time! At the moment I can select Buttons but when I select othe...

Flutter - Colors on application looks a bit different from Figma design

I'm not sure what am i missing but when applying the same <code>HEX code Color</code> from <code>Figma</code> or <code>adobe XD</code> it looks a bit different on mobi...

How to load theme at beginning in Flutter

I want to users can change and save the theme color in my app. However, I have no ideas how to load the saved theme color when the app starts running. For example, I w...