Questions tagged [material3]
127 questions
0
votes
1 answer
Flutter ColorScheme CopyWith brightness not working
In my Flutter project app_theme.dart file I have this code:
class AppTheme {
static const primaryColor = Color.fromARGB(255, 106, 49, 185);
static ThemeData lightTheme() {
return ThemeData(
useMaterial3: true,
colorScheme:…

user892028
- 175
- 1
- 10
0
votes
0 answers
Material3: Unwanted White bg on text selection menu on AlertDialog
There is a white background when users select text and see copy/paste menu.
And you see handles are not the accentPrimary color too.
This happens on AlertDialogs which it's style is deriven from Theme.Material3.DayNight.Dialog.Alert
The dialog is…

mrahimygk
- 512
- 5
- 20
0
votes
0 answers
Is there a way to unselect all navigation items in the m3 NavigationBar in Flutter?
In Flutter with a Material 3 (m3) app, I am using a NavigationBar as bottomNavigationBar of a Scaffold. How can I disable the active indicator for all destinations?
My use case is my app has pages which do not correspond to the bottom…

user2428094
- 1,643
- 2
- 10
- 6
0
votes
1 answer
Does Flutter DropdownMenu support helper and error text (like DropdownButtonFormField's decoration)?
I'm trying to implement the new Material 3 DropdownMenu in my application to replace the old DropdownButton, but I can't seem to find where to add the error and helper texts.
Back in the DropdownButtonFormField, they would go inside the decoration…

Gabriel Bertollo
- 1
- 1
0
votes
3 answers
Flutter Material 3 Changed colors, and fonts
So I just decided to give Material 3 a shot in Flutter and it changed a whole lot of colors, and fonts etc.
I knew certain things would look different like more rounded corners on my cards but I wasn't expecting all the fonts and card colors to…

Ten Digit Grid
- 1,315
- 4
- 22
- 43
0
votes
0 answers
Material 3 - Google Calendar top app bar style
I am updating my Flutter application to Material 3 and figured out that images are not really supported in app bars anymore (see https://m3.material.io/components/top-app-bar/overview)
But then I came across the updated Google Calender app and was…

Florian Knoll
- 101
- 5
0
votes
1 answer
How to "initialize" Material 3 theme design in Android Studio
I'm sure this is a newbie question, but I'm trying to implement a Material 3 theme. I have added the themes.kt & colors.kt to my com.my.project.ui.theme package. But I don't understand what I can do next to implement these colors as my app is not…

Joe
- 1
- 2
0
votes
1 answer
Android compose: customize Slider thumb and tick
I would like to customize the Slider discrete component…

deveLost
- 1,151
- 2
- 20
- 47
0
votes
1 answer
MaterialTheme showing a different colorScheme
For some reason, the preview shows a different palette than the one I have in Color.kt and Theme.kt. ie. Primary is Color(0xFFA43D00) in Color.kt, but #00658D in the Layout inspector.
I probably messed up something. I didn't like the default…

Ignacio Guerrero
- 48
- 4
0
votes
1 answer
Jetpack compose Scaffolds TopAppBar elevation
Trying to add elevation to my TopAppBar in Scaffold topBar. Using Jetpack compose, material 3.
This is how it worked before:
TopAppBar(
title = {
Text(text = title)
},
elevation = 3.dp //Not valid anymore
…

Domagoj Ratko
- 145
- 8
0
votes
1 answer
The different colors on top and bottom of the view are displayed by TextInputLayout with ExposedDropdownMenu style
After setting the custom adapter to AutoCompleteTextView it shows a different color.