Questions tagged [materialbutton]

60 questions
5
votes
2 answers

Android Material Button with Icon on top of Text

Is it possible to have a material button with an icon on top of its text as such: If yes, can you please explain how with some code? Thank you.
4
votes
0 answers

How do you set MaterialButton icon size to fit the constraints?

I have a MaterialButton constrained on every side and want to fit a vector icon to those constraints so that it expands or contracts based on the button constraints. These are the basic attributes:
AaronC
  • 155
  • 2
  • 9
4
votes
2 answers

How to write a multiline text on a Material button?

I need to make a multiline text material button. I have followed this question's answers, but it turns out that material buttons work differently.
Hila Grossbard
  • 521
  • 7
  • 20
3
votes
1 answer

Unable to wrap labels of buttons inside Material Button Toggle Group

I have three buttons inside a MaterialButtonToggleGroup. The issue is that all the labels are being cut off and not wrapped.
Shizuku
  • 147
  • 1
  • 9
3
votes
4 answers

Change the background color of MaterialButtonToggleGroup

I'm using MaterialButtonToggleGroup to create selector buttons. I want to change the background color of MaterialButton buttons. Its default color is light blue, and I want to change it to light green. Currently, I'm using drawable sectors to change…
3
votes
1 answer

Can't change the height of a button in flutter

I'm new to flutter. I'm trying to insert to the "AppBar" a simple "contained button" with text on it. (For example the material design "contained button" here) The problem is that no matter what height I insert in the Constructor, the button still…
Johanna
  • 566
  • 1
  • 4
  • 17
2
votes
4 answers

Flutter- how to disable a Button untill the requireed fields are filled

I want to disable a button untill all the required fields are filled. I found similar questions here but all answers are based on making the onPressed property to null. But it does not disable the tap effect. I want something like this. On…
Gireesh
  • 111
  • 1
  • 7
2
votes
0 answers

Android : change style of MaterialButton programmatically

I have a MaterialButton defined into the layout
Turvy
  • 882
  • 1
  • 8
  • 23
2
votes
1 answer

I want to change variant or background of the clicked button (onClick) only in reactjs. How can i achieve it?

What i am trying to do it, when a button is clicked, at the onclick it's variant(material ui button should change from outlined to contained) or simply its background should change. (Please do not suggest for the onFocus property because these is…
Yogesh
  • 91
  • 2
  • 10
2
votes
2 answers

Android MaterialButton Set Check in XML for DataBinding

I'm using MaterialButton within MaterialButtonToggleGroup:
2
votes
2 answers

How to add an vector color icon in ExtendedFloatingActionButton

I'm trying to add a color vector icon in an ExtendedFloatingActionButton from google material but it is showing a black background in the icon. On Preview of layout, it looks alright but when run on mobile it shows black background near the icon. …
Ravi Parmar
  • 968
  • 11
  • 28
2
votes
2 answers

Sending an Id to a method on a button click in Material Table in Angular

I have the following Material Table Code for "Action" is as given below: Action
1
vote
0 answers

Failed to inflate ColorStateList, leaving it to the framework for Material Button

I am using the material button as
WISHY
  • 11,067
  • 25
  • 105
  • 197
1
2 3 4