tagged [dart]

Is there a way to print a console message with Flutter?

Is there a way to print a console message with Flutter? I'm debugging an app, but I need to know some values in the fly, I was wondering if there's a way to print a message in console like console.log...

9 Aug at 13:11

What is the correct way to add date picker in flutter app?

What is the correct way to add date picker in flutter app? In my app I am creating signup page where I need to add DOB. I want to add date picker in that but I am not getting correct way to do this.

How can I add a border to a widget in Flutter?

How can I add a border to a widget in Flutter? I'm using Flutter and I'd like to add a border to a widget (in this case, a `Text` widget). I tried `TextStyle` and `Text`, but I didn't see how to add a...

28 Feb at 16:56

Flutter: filter list as per some condition

Flutter: filter list as per some condition I'm having a list of movies. That contains all animated and non-animated movies. To identify whether it's Animated or not there is one flag called `isAnimate...

14 Feb at 11:51

Angular2 dynamic change CSS property

Angular2 dynamic change CSS property We are making an and we want to be able to somehow create a global CSS variable (and update the properties' values whenever changed when the variable is assigned)....

22 Aug at 12:57

Check value in array exists Flutter dart

Check value in array exists Flutter dart I am trying to check condition but nothing to help anyone having an idea then please share. itemId is integer i want to check my item id exists in my list arra...

18 Sep at 04:32

How to add clear button to TextField Widget

How to add clear button to TextField Widget Is there a proper way to add a clear button to the `TextField`? Just like this picture from Material design guidelines: [](https://i.stack.imgur.com/nMAJn.p...

8 May at 06:16

Dart DateTime.parse() string date return by ServiceStack

Dart DateTime.parse() string date return by ServiceStack I have date string return by ServiceStack : 2013-08-25T12:06:32.8770000 but error when convert to date of Dart it ok when call Is there anyway ...

6 Dec at 07:51

How can I add shadow to the widget in flutter?

How can I add shadow to the widget in flutter? How can I add shadow to the widget like in the picture below? [This](https://stackoverflow.com/questions/52173205/how-can-put-image-inside-the-image-in-f...

10 Jan at 20:25

How to create Toast in Flutter

How to create Toast in Flutter Can I create something similar to [Toasts](https://developer.android.com/guide/topics/ui/notifiers/toasts.html) in Flutter? [](https://i.stack.imgur.com/a2ahK.jpg) Just ...

26 Dec at 09:44

Flutter BoxDecoration’s background color overrides the Container's background color, why?

Flutter BoxDecoration’s background color overrides the Container's background color, why? I have a Flutter Container widget and I defined a color for it (pink), but for some reason, the color in BoxDe...

Caching Response with Dart ServiceStack in flutter?

Caching Response with Dart ServiceStack in flutter? I am using the ServiceStack client for Dart in order to perform requests to my API, but I am not able to find a way to cache the response with the c...

22 Nov at 17:49

How can I "sleep" a Dart program

How can I "sleep" a Dart program I like to simulate an asynchronous web service call in my Dart application for testing. To simulate the randomness of these mock calls responding (possibly out of orde...

26 Aug at 17:42

Flutter: How to change the width of an AlertDialog?

Flutter: How to change the width of an AlertDialog? I wonder how to change the default width of an AlertDialog, I only succeeded to change the border radius : Here is my code : ``` showDialog( cont...

10 Jan at 21:8

How to create number input field in Flutter?

How to create number input field in Flutter? I'm unable to find a way to create an input field in Flutter that would open up a numeric keyboard and should take numeric input only. Is this possible wit...

24 Sep at 08:26

How can I change the app display name build with Flutter?

How can I change the app display name build with Flutter? I have created the app using Flutter create testapp. Now, I want to change the app name from "testapp" to "My Trips Tracker". How can I do tha...

The equivalent of wrap_content and match_parent in flutter?

The equivalent of wrap_content and match_parent in flutter? In Android `match_parent` and `wrap_content` are used to resize the widgets automatically relative to their parent to the content the widget...

26 Dec at 09:53

Flutter - Container onPressed?

Flutter - Container onPressed? I have this container: When the user clicks on the `Container`, I want an `onPressed()` method to be fired (like it can be done with `IconButt

20 Feb at 15:55

How to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen?

How to hide soft input keyboard on flutter after clicking outside TextField/anywhere on screen? Currently, I know the method of hiding the soft keyboard using this code, by `onTap` methods of any widg...

7 May at 10:16

How to create GridView Layout in Flutter

How to create GridView Layout in Flutter I am trying to layout a 4x4 grid of tiles in flutter. I managed to do it with columns and rows. But now I found the `GridView` component. Could anyone provide ...

24 Jan at 03:28

Flutter: how to prevent device orientation changes and force portrait?

Flutter: how to prevent device orientation changes and force portrait? I would like to prevent my application from changing its orientation and force the layout to stick to "portrait". In the main.dar...

26 Dec at 09:42

How to format DateTime in Flutter

How to format DateTime in Flutter I am trying to display the current `DateTime` in a `Text` widget after tapping on a button. The following works, but I'd like to change the format. `YYYY-MM-JJ HH-MM:...

4 Dec at 19:24

Enumerate or map through a list with index and value in Dart

Enumerate or map through a list with index and value in Dart In dart there any equivalent to the common: It seems that this is the easiest way but it still seems strange that this functionality wouldn...

24 Sep at 06:32

Generate SHA-1 for Flutter/React-Native/Android-Native app

Generate SHA-1 for Flutter/React-Native/Android-Native app I'm trying to generate a SHA-1 for a Flutter app, for Android studio to support Google Sign in, but I don't know how to do that, I saw some p...

27 Feb at 15:55

Flutter: Outline input border

Flutter: Outline input border I was trying to build a border for my text field like: But it always return a black border with 1.0 as width. The only way that I found to change the color was to create ...

11 Jan at 09:21