Комментарии:
Source code not shared
ОтветитьThe color only changes for a few seconds using this function.
I also get the error in blue that says:
Use a function declaration to bind a function to a name.
MaterialStateProperty<Color> getColor(Color color, Color colorPressed) {
final getColor = (Set<MaterialState> states){
if( states.contains(MaterialState.pressed) ){
return colorPressed;
}
else{
return color;
}
};
return MaterialStateProperty.resolveWith(getColor);
}
how to make it if i want to create a permanent border after i click the button? thank
ОтветитьI find your tutorials, like this one, sometimes quite confusing as you don't explain the logic behind certain things. It's very confusing to just copy your code and not understand what's going on.
ОтветитьI really like your videos. But I have a question, what nationality are you? I mean, you say color as "kala"?
ОтветитьI want to hold the pressed color upon click...so I tried to use ternary operator, but it didn't work... what can i do ㅠㅠ
ОтветитьVery nice.But after pressing the color gone. Can I make them stay? Like when I press it should be stay green. Can it be done?
ОтветитьHi Johannes Milke, First thanks for this video. Second, After I click on button its changing color as we mention in getColor but immediately its coming back to normal. Its not holding at color changed properties as you shown in video. What could be the wrong ?
ОтветитьHello my friend, I am a fan of flutter. I prefer to program on flutter, but I noticed that flutter is much slower in performance than java. Why can I solve this problem? Is there a solution to this problem in the future? Please reply and thank you.
ОтветитьSir Create a Video of Build Ios and macOS App and Publish to App Store.
Thanking You .
Thank u so much for such great videos.. keep going bro 😊
Ответитьsir Create a video on when I set the color in setting then all color are changed who I set in a setting method in flutter application.
Ответитьthanks alot
Ответитьit seems to me that if we use the Materialbutton it will be easier, there is a built-in method where you can change the color
Ответить