All Questions (2,412 questions)



How to add custom Tap Events for Google Maps Marker in Flutter?

Posted by Jessica Taylor | Updated on

Want to add custom Tap Events for Google Maps Marker in Flutter? This way a Google Map has a markers: option which admits a list of Marker objects. Each of the elements can be defined …

Starting with plain (non material ui) canvas in flutter

Posted by Editorial Staff | Updated on

Starting with plain (non material ui) canvas in flutter. Use raw widgets use import ‘package:flutter/widgets.dart’; Here is a working example: The directionality is needed, the padding was added so that we see the message, otherwise …

Flutter NotificationListener with ScrollNotification vs ScrollController

Posted by Ramesh Singh | Updated on

Flutter NotificationListener with ScrollNotification vs ScrollController. It’s my demo use NotificationListener with ScrollController. After drag a litter left, the blue part will automatic move.

List of horizontal list in Flutter

Posted by Jennifer | Updated on

List of horizontal list in Flutter. I guess what you want is a list within a another list Here is the adaptation of the sample program that you have followed The build method is like:

How to add scroll to the column in flutter?

Posted by Jessica Taylor | Updated on

In this example, how to add scroll to the column in flutter? Your ListView seems to be fine, but I’m guessing it’s wrapped inside a fixed size Widget as Column or Row (the yellow and …

ListView inside Column causes ‘Vertical viewport was given unbounded height’

Posted by Jennifer | Updated on

ListView inside Column causes ‘Vertical viewport was given unbounded height’. Try wrapping your ListView.builder with a Flexible or Expanded widget:

How to convert String to List in flutter?

Posted by Andre Scott | Updated on

Want to convert String to List in flutter? Your string looks like valid JSON, so this should work for you:

How to open Location in Maps using flutter?

Posted by Andre Scott | Updated on

Want to open Location in Maps using flutter? Yes you can do that using the url_launcher plugin. The following code will open Google Maps when the app is installed on the phone (otherwise it will …

How to reload data when using FutureBuilder

Posted by Ramesh Singh | Updated on

Want to reload data when using FutureBuilder. You can refresh widget by clicking on FlatButton. The code is below:

Flutter listening to textField value changes from other widget

Posted by Andre Scott | Updated on

Flutter listening to textField value changes from other widget. You just have to listen the TextEditingController for text changes. Here is example:

How to add icon to text in flutter?

Posted by Rohit Kumar | Updated on

In this example, I will share how to add icon to text in flutter? Using RichText you can mix TextSpans with WidgetSpans. WidgetSpan allows you to place any Flutter widget inline with the text. Here …

How to create a custom AppBar widget in flutter?

Posted by Jessica Taylor | Updated on

Want to create a custom AppBar widget in flutter? You can use the following example code to create a custom AppBar widget in flutter.

How to set background color for an icon button?

Posted by Jennifer | Updated on

Want to set background color for an icon button? you can wrap your IconButton with Container and use color property to achieve desire output. May Following Example help You. Here is an example:

How to stringify json in flutter?

Posted by Rohit Kumar | Updated on

Want to stringify json in flutter? When encoding the object back into JSON, you’re using .toString(), which does not convert an object to valid JSON. Using jsonEncode fixes the issue.

How to Change Flutter Text Field Border Color On Focus?

Posted by Andre Scott | Updated on

In this example, I will share how to Change Flutter Text Field Border Color On Focus. Use the below example code to Change Flutter Text Field Border Color On Focus.