Top "Dart" questions

Dart is a class-based, statically(& strongly)-typed programming language for building web and mobile applications.

How to upload images and file to a server in Flutter?

I use a web service for image processing , it works well in Postman: Now I want to make http request …

flutter dart file-upload httprequest
How to convert a double to an int in Dart?

The following produces the below error: int calc_ranks(ranks) { double multiplier = .5; return multiplier * ranks; } The return type double is …

dart
How to add a new pair to Map in Dart?

I caught the following errors when adding a new pair to a Map. Variables must be declared using the keywords …

flutter dart key-pair fluttermap
Flutter dart try catch, catch does not fire

Given the shortcode example below: ... print("1 parsing stuff"); List<dynamic> subjectjson; try { subjectjson = json.decode(response.body); } on …

flutter dart try-catch catch-block
Flutter (Dart): Exceptions caused by rendering / A RenderFlex overflowed

I have a problem with Flutter (Dart) RenderFlex overflowed pixels. An exception of rendering library. How can I manage or …

mobile dart rendering overflow flutter
Style BottomNavigationBar in Flutter

I am trying out Flutter and I am trying to change the colour of the BottomNavigationBar on the app but …

dart flutter bottomnavigationview
Multi-line Textfield in flutter

It may sound easy but How can we do a multi-line editable textfield in flutter? TextField works only with a …

dart flutter
Flutter - Container onPressed?

I have this container: new Container( width: 500.0, padding: new EdgeInsets.fromLTRB(20.0, 40.0, 20.0, 40.0), color: Colors.green, child: new Column( children: [ new Text("…

flutter dart flutter-layout
Looking up a deactivated widget's ancestor is unsafe

I am new in Flutter and I am trying receive data with a Dialog. When a click in textField the …

flutter dart dialog flutter-widget
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 …

unit-testing mocking dart