10 Flutter tips — season 2 — part 1/10

10 Flutter tips — season 2 — part 1/10

After the last part of the 1st season was published, there was actually no plan to do a second season, but you asked for it and here it is.

We are looking at websites, packages, GitHub repositories, widgets, extensions and much more in the second season, so I recommend you to follow me now not to miss this!

Then I hope you enjoy the 1st part of the second season,

Happy Reading!

· [Flutter Carplay](#64f3 "Flutter Carplay")
· [Scribble](#a6be "Scribble")
· [Badges](#c07b "Badges")
· [Pinput](#49e1 "Pinput")
· [Flutter Blurhash](#9fbe "Flutter Blurhash")
· [Bottom Bar with Sheet](#1f19 "Bottom Bar with Sheet")
· [String Validator](#0f54 "String Validator")
· [Flutter gen](#25a5 "Flutter gen")
· [Photo View](#873b "Photo View")
· [Wakelock](#a47d "Wakelock")
· [Conclusion](#42d1 "Conclusion")

Flutter Carplay

Meanwhile it is in the hype, Flutter Carplay. You can use it to develop an app in Flutter that will work on Apple Carplay.


scribble is a simple package that allows you to draw. It reacts to changes in pressure, supports different thicknesses of a stroke and much more.

It is still under development, but it is constantly getting new features and already has the most important features.


The Package badges is used to add a badge to any widget. This can be a number to indicate how many items you have in your cart or how many new messages you have, but it can also be used to indicate a warning, for example with an exclamation mark, or a new feature with “NEW”. As you can see, the possibilities are almost endless.

The great thing is that it is very easy to use. You just need to wrap your widget with the “Badge” widget and then specify the badeContent, for example a text. Here is an example of it:


pinput is used to create a pin code input where each pixel is customizable.

Flutter Blurhash

This Package is for adding a blur effect to an image. The blurhash is the code that specifies how your image will look blured. To get this code you need to go to https://blurha.sh/ and paste your image there. Here is a visual example of how this works:

Now to insert your blurhash you have to implement the following in your flutter code:

Bottom Bar with Sheet

bottom_bar_with_sheet is a normal bottom bar, but it provides a very useful functionality. Sometimes you want to have more space on your screen, but how do you do it? Well, quite simple: with this nav bar you can pull up a “second screen”/sheet and by doing so you get much more space. Here is a small example how it could look like:

Looks a bit complex, but it is not. The package has a great readme file that explains everything in detail.

String Validator

This package has already saved me a lot of time. string_validator is there to validate a string (who would have thought it). It doesn’t sound that exciting, but if you look at how many possibilities there are to validate a string with this package, then it belongs in almost every Flutter project.

Flutter gen

This tool is very useful. We all know that string based APIs are not the most secure. If you insert a single character incorrectly, the whole string will stop working. The problem is that you use sting apis very often in Flutter. Assets, fonts, colors… Flutter gen is there to solve this problem.

It’s a bit complicated to set up, but well worth it and you should use it in every project!

Photo View

photo_view is a very simple but useful package. When you display a photo, you also want to be able to zoom in and out and other things. Just wrap your image with the PhotoView widget and you are done

You can also create a gallery of photos.


If the user has set it, then the screen goes off after a certain time and the phone locks itself. But this is sometimes very annoying, because a process is running in the app or something else. With this simple plugin you can prevent the phone from locking itself automatically:


Now we have reached the end of the first part of the second season.

I am looking forward to the next parts. If you liked something very much or if you didn’t like something that I could improve, I would be very happy if you let me know so that I can improve.

If you liked the tips, I would also be happy about some claps and very happy about a follow, so you don’t miss the next parts of this series!

Have a great day, thanks for reading!

Did you find this article valuable?

Support Tomic Riedel by becoming a sponsor. Any amount is appreciated!