Flutter - SimpleDialog in FloatingActionButton

I'm trying to create a SimpleDialog after a tap on the FloatingActionButton, however when pressing that button nothing happens. What was I doing wrong? import "package:flutter/material.dart"; void main() { runApp(new ControlleApp()); } class Co...
more »

2017-06-20 16:06 (1) Answers

Heroku buildpack for Dart: Pushing app to Heroku

I am using this "Heroku buildpack for Dart" from the following Github repository: https://github.com/igrigorik/heroku-buildpack-dartam . I followed the set of commands to deploy the HTTP server built with Dart to Heroku and once I try to push the ap...
more »

2017-06-19 21:06 (0) Answers

How to transpile a Dart lib to a JavaScript one?

If I develop a Dart library, is there an idiom to transpile the Dart library to a JavaScript one? Assume the Dart library mainly exports two things: a class and a function. On JavaScript side, a JavaScript class/object and a function are expected. ...
more »

2017-06-19 11:06 (1) Answers

ListView with rows - Warnings and Errors

I'm making an "infinite list" in which each index has a row with 2 cards. I'd like to make these cards the same size with their context centered. So both card have a width of totalWidth/2 - padding. But I'm not getting the wanted result, this is was ...
more »

2017-06-18 15:06 (2) Answers

TabBar Navigation in a Card Widget

I have a home page that uses Scaffold and a bottom navigation. In the body of the Scaffold, I have a page that contains 2 Card Widgets. I am trying to implement a "sub" tabBar navigation for the second card that is independent of the bottom navigatio...
more »

2017-06-18 10:06 (1) Answers

Make BoxDecoration image faded/transparent

I have the following snippet of code and I would like to make the image faded such that it does not interfere with other items in the container. Is there a filter that could accomplish this? child: new Card( child: new Container( decoration: n...
more »

2017-06-18 09:06 (1) Answers

AngularDart using stylus

I didn't find any normal way to use stylus in AngularDart. For example in Angular 4 I can just specify that I use .styl and everything works. But here I cannot do this as I see. I don't want to use watchers by WebStorm, because if I use framework, I ...
more »

2017-06-17 19:06 (0) Answers

JSON Web Service using Dart

Following this tut, I straightaway downloaded the server and client code from github url given therein. I have dart vm version 1.22.0 installed on windows 7. I also have dartium of the same version. The server successfully starts up like D:\dartwrk\...
more »

2017-06-17 16:06 (0) Answers

How to listen for emails in Dart?

Exactly what it says on the tin - how do you listen for emails sent to a Gmail account? There's no support for this, apparently - I tried searching for a package on pub, but to no avail - the most relevant thing I could find is mailer, but that only ...
more »

2017-06-17 09:06 (1) Answers

Flutter - Insert overflow ellipsis in text

I'm trying to create a line in which center text has a maximum size, and if the text content is too large, it fits in size. I insert the TextOverflow.ellipsis property to shorten the text and inserting the triple points ... but it is not working. m...
more »

2017-06-16 04:06 (2) Answers

Data driven contents of a material-expansionpanel

I need to display a list of objects of different types in a repeating list of MaterialExpansionPanels. When the user clicks on each panel to expand it, the contents depend on the type of object. I don't really have any idea for how to proceed - woul...
more »

2017-06-16 02:06 (1) Answers

NoSuchMethod on RefreshIndicator

I have a layout which is using RefreshIndicator. It's child is CustomScrollView. However when onRefresh handler is called it throws an exception [ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception: E/flutter (21060): NoSuchMethodEr...
more »

2017-06-15 08:06 (1) Answers

Dart, float for loop will cause strange result

for(int i=0; i<10; i++) { priceValue.add(54.99 + i*5); print(54.99 + i*5); } Result: js_primitives.dart:30 54.99 js_primitives.dart:30 59.99 js_primitives.dart:30 64.99000000000001 js_primitives.dart:30 69.99000000000001 js_primitives.d...
more »

2017-06-15 05:06 (1) Answers

Flutter - Loops for ListTile

I am not sure how to generate multiple ListTiles by means of loops, such as for(). I do not know how Flutter works for rendering widgets, since in Angular 2 just insert the *ngFor directives in the layout (html). I could not find such a subject in ...
more »

2017-06-15 01:06 (1) Answers

Flutter - The screen is not rolling

I inserted 6 cards, however it is not possible to scroll the screen. According to the image below, a red stripe appears in the footer, and the screen does not scroll. What is missing to be able to scroll the screen? main.dart import 'package:flut...
more »

2017-06-15 00:06 (2) Answers

Flutter constructor error

I have a problem with a code snippet I tried to play with, and since I am new to dart I don't really understand the error message. Can somebody explain to me why the error message says The constructor returns type 'dynamic' that isn't of expected...
more »

2017-06-14 19:06 (1) Answers

Flutter - Top align text in Container

I'm trying to leave the $ text in the top of the container, but even with FractionalOffset(1.0, 0.0) the $ text continues in the middle of the container. What could be done to leave the $ in the top of the container? body: new Card( child: ne...
more »

2017-06-13 17:06 (1) Answers

Flutter - Set the scale of a widget

I am trying to create an animation that "pops" the widget to the front and returns to it import "package:flutter/material.dart"; class ScoreCounter extends StatefulWidget { @override _ScoreCounter createState() => new _ScoreCounter(); } cla...
more »

2017-06-13 15:06 (1) Answers