Month: August 2019

How to Specify Height and Width in Percent with respect to the screen in Flutter

Mobile phone devices are of various sizes and resolutions. Developing a mobile app which looks similar in all these phones is not easy. In such cases, mentioning height and width in percent with respect to the screen can help you. In Flutter, you can’t really specify some percent of width or height directly. You can …

How to Specify Height and Width in Percent with respect to the screen in Flutter Read More »

Stuck at Installing build\app\outputs\apk\app.apk… Flutter Issue Fix

Sometimes, when you run your Flutter project you may come across this particular Flutter issue- you get stuck at Launching lib/main.dart on XT1635 02 in debug mode… Built build/app/outputs/apk/debug/app-debug.apk… You may even wait for many minutes and your app wouldn’t start on your Android device. So, how to fix this Flutter issue? All you need …

Stuck at Installing build\app\outputs\apk\app.apk… Flutter Issue Fix Read More »

You need to have compileSdk set to at least 28 in your module build.gradle to migrate to AndroidX Flutter Issue Fix

You may face this Flutter AndroidX error when you try to migrate your Flutter project to AndroidX. In Android Studio, you would come across a dialog box saying: You need to have compileSdk set to at least 28 in your module build.gradle to migrate to AndroidX So, how to fix this Flutter issue? Open the …

You need to have compileSdk set to at least 28 in your module build.gradle to migrate to AndroidX Flutter Issue Fix Read More »

How to Add a Flat Button in Flutter

A Flat Button in Flutter is different from Raised Button. FlatButton widget is basically a text on the material widget which reacts to the touches. Unlike RaisedButton, Flat Button doesn’t have elevation property. Hence, if you want a button which is not much fancy then you should choose FlatButton over RaisedButton. I have already posted …

How to Add a Flat Button in Flutter Read More »

How to Add Hexadecimal Colors in Flutter

By default, you cannot add hexadecimal color code directly to Flutter. In this blog post, let’s check how to add hex color codes in Flutter. The hexadecimal string is not accepted because the Colors class accepts only integers. Hence, while specifying hexadecimal colors we need to convert it into integers. For this, you just need …

How to Add Hexadecimal Colors in Flutter Read More »