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...
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.
- Modified
- 9 Oct at 18:49
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...
- Modified
- 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...
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)....
- Modified
- 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...
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...
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 ...
- Modified
- 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...
- Modified
- 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 ...
- Modified
- 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...
- Modified
- 25 Jan at 20:17
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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 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...
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...
- Modified
- 26 Dec at 09:40
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...
- Modified
- 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
- Modified
- 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...
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 ...
- Modified
- 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...
- Modified
- 26 Dec at 09:42
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...
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...
- Modified
- 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 ...