Let’s how to format a bigger amount of seconds to minutes and seconds. The above function takes any kinds of seconds and converts it minutes and seconds( if more seconds are left over) It also checks for if we want to return just minutes or seconds.
Month: November 2022
Flutter Custom Image with FadeInImage
It’s easy to customize image and related properties in flutter using FadeInImage.assetNetwork. We created a class called CustomImage and we pass parameters to it. Network image path could be sent as string to this CustomImage class and pass down to FadeInImage.assetNetwork Here Image.placeholder is the default image path. You can mention any image from assets…
Flutter Custom Loader
Here we will see how to create a custom loader in flutter. It’s easy to create one. We just create a stateless class and inside this we may use CircularProgressIndicator. CircularProgressIndicator is inside a Container(). So, we would be able to style as we want. The radius could be anything based on your needs. The…
Flutter LinearProgressIndicator
Flutter LinearProgressIndicator is cool for slowly showing animation or progress. It shows animation in a line or in a straight line. If you have a timer app in Flutter, you may use timer to show progress of the elapsed time. it could be used to show download progress as well. LinearProgressIndicator Widget In general, you…
Flutter Google Map Api Prediction
Flutter Google Map Api Prediction is an awesome api to deal places that you are looking for or searching. It gives you list of places as you type in text field. First install the plugin in your pubspec.yaml file to get the Prediction Api flutter_google_places: ^0.3.0 As you type in your text field should receive…