All Questions (2,351 questions)



How to detect keyboard press Enter in Flutter?

Posted by Andre Scott | Updated on

Want to detect keyboard press Enter in Flutter? There is a onSubmitted property which accepts a ValueChanged callback. onSubmitted is triggered once the user press done after editing. Hope that helps!

How to vertically align row items in flutter?

Posted by Jennifer | Updated on

In this answer, I have shared how to vertically align row items in flutter. The problem is that TextFormField is going to add some padding around itself. Since you just want to align the icon, …

Is there WebView in Flutter?

Posted by Jessica Taylor | Updated on

A Flutter plugin that provides a webview widget is available now for Developers Preview. Here is an example:

llvm-rs-cc is missing flutter

Posted by Ramesh Singh | Updated on

Here is an example of llvm-rs-cc is missing in flutter. I had the same problem,Here’s how I solved 1. Navigate to Home/User/Android/Sdk/build-tools. 2. Delete all the folders from there. 3. Go to SDK Manager and …

Upload Image to Firebase Storage in Flutter

Posted by Jessica Taylor | Updated on

Upload Image to Firebase Storage in Flutter. When you select an image with the image picker, it returns a File, you can use await to wait until the user selects a file then store it …

How to specify listTile height in flutter

Posted by Andre Scott | Updated on

Want to specify listTile height in flutter Just remove the Expanded Widget to avoid fill the space available and use a parent Container with a fixed height, the same as the itemExtent value:

How to set the background color of a Flutter OutlineButton?

Posted by Jessica Taylor | Updated on

Want to set the background color of a Flutter OutlineButton? Use the below flutter example code to set the background color of a Flutter OutlineButton.

How to encode an object to json in Flutter

Posted by Jennifer | Updated on

If you want to encode an object to json in Flutter? To make my code work I needed to implement the toJson() methods at my class Goal as well (because I used List in Week). …

How to draw a horizontal line in flutter row widgets?

Posted by Andre Scott | Updated on

Want to draw a horizontal line in flutter row widgets? Try wrapping you Column in an Expanded so the Divider knows how much space to occupy.

Flutter circle file image with clip oval

Posted by Andre Scott | Updated on

Flutter circle file image with clip oval. You can use CircleAvatar widget to display the obtained image to make it circular. Here is an example:

How to use local aar inside flutter plugin?

Posted by Ramesh Singh | Updated on

In this example, I will share how to use local aar inside flutter plugin? In my experience, adding direct plugin aar in another plugin project (flutter plugin’s android project) is either very difficult or not …

How to create directory folder in Android Studio

Posted by Rohit Kumar | Updated on

How to create directory folder in Android Studio? Try to create package instead of a directory. Seems like Create New Package and Create New Directory will both just create a folder under lib directory.

How to customize Bottom Navigation Bar height in Flutter?

Posted by Jennifer | Updated on

Want to customize Bottom Navigation Bar height in Flutter? You can create your own widget by using the below example code:

Flutter convert Color to hex string

Posted by Jessica Taylor | Updated on

Flutter convert Color to hex string. You can convert the value property (includes alpha) or the individual red, green, and blue properties to Hex using int.toRadixString(16):

How to map JSON into Class Objects in flutter?

Posted by Andre Scott | Updated on

Want to map JSON into Class Objects in flutter? You can use source generation tools like https://pub.dartlang.org/packages/json_serializable to generate the serialization and deserialization code for you.