-
I currently try to implement language switch for my application. And I saw a gif example from pub.dev page. So, I want to ask how to use country flags for switch icons because there is no country flag icons build in or as a packages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I apologize for the late reply. I think I did it with the country_icons package. If you want an exact implementation, I can look it up too. I didn't include the top two GIFs in my example because they require external packages. EDIT: Here is the code for the flag which I used for the demo in the GIF. You can put this in the builder of the switch. Since I haven't touched this code for a long time, I can't guarantee that it works without problems, so feel free to give feedback if it works for you 😁.
In retrospect, I think you could also put the |
Beta Was this translation helpful? Give feedback.
I apologize for the late reply. I think I did it with the country_icons package. If you want an exact implementation, I can look it up too.
I didn't include the top two GIFs in my example because they require external packages.
EDIT: Here is the code for the flag which I used for the demo in the GIF. You can put this in the builder of the switch. Since I haven't touched this code for a long time, I can't guarantee that it works without problems, so feel free to give feedback if it works for you 😁.
If you want the code for the whole switch, I would have to assemble it myself first, since I have it all encapsulated.