Setting local happens using Locale() constructor. It takes language code and country code. Locale is used the change the language on button click or onPressed events. Flutter framework recognizes different language using language code and country code. If you have many languages, then you should save those languages and related info in List. In the…
Month: June 2022
Flutter Profile Card
Here, we will take a look how to make a profile card in Flutter. If you implement the code below, you will have a card like Language or Change password button below. It’s important to use a little bit of BoxDecoration for profile card. As you call this stateless class, you need to two arguments,…
Flutter Text With Transparent Background On Image
Let’s learn how to use transparency with text background with Image as background. We will use Color.fromARGB to achieve transparency on image. We will use Color.ARGB inside container and a child a Text. So the text will have transparent background.
How to Dispose Remove or Close Getx Controller
In general Getx controllers should be removed or disposed automatically. But if you wanna force to be removed there are a few ways, you can try. 1. Inside Build Method If you want the controllers to be removed forcefully automatically, then you can inject the controller inside the build method of your class. If you…