I am trying to add google logo inside my Elevated button
. I tried searching but can’t found anything useful. I found only adding icons via ElevatedButton.icon
. How can I show google or facebook or any other logos inside my elevated button.
Thank You!
3
Answers
you can use this package to get the all brand as icon
for Example you can use this in icon:
all this return the logo as icon
You can definitely add custom logos like Google or Facebook inside an
ElevatedButton
in Flutter. You can use theImage.asset
widget to include your custom logo. Example::You can use the Image.asset widget inside the ElevatedButton to display the logo. like this:
This example shows how to add a Google logo to an
ElevatedButton
. You can replace'assets/google_logo.png'
with the path to your Facebook logo or any other logo you want to use.I hope this may help you to solve it.
this is how to use it