RenderLoop vs Stage when using Juggler in StageXL

I am really new to StageXL, so still struggling with the basic concepts. I have the following code from Stagehand web-stagexl: import 'dart:async'; import 'dart:html' as html; import 'package:stagexl/stagexl.dart'; import 'dart:math'; Future<Nu...
more »

2017-12-03 22:12 (1) Answers

Flutter - named parameters aren't defined

Trying to create a list following code used here but can't get around the syntax error class _ContactListItem extends ListView { _ContactListItem(Contact contact) : super( title : new Text(contact.fullName), subtitle: new Text(con...
more »

2017-11-30 22:11 (3) Answers

How to create a list of objects in dart?

I want to create a list of objects for a particular class in dart . I have a class called Refreshments with two parameters name and price . I have created a class with a constructor .Later . I have created a list like this : List <Refreshmen...
more »

2017-11-30 13:11 (0) Answers

Dart/Flutter auth implementation

I am working on a sample Flutter mobile application. Does Flutter / Dart have any http libraries that support persisting secure cookies. Example use case ( guessing it should be pretty common use case): User logs in once and the application should...
more »

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

Dart build step in teamcity

I try to create build steps in teamcity to build dart angular application. At first step I run command line script: set https_proxy=http://myproxyaddress pub get Log looks like: [Step 1/5] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_scr...
more »

2017-11-29 17:11 (2) Answers

Dart — onclick action add/remove class

Now I'm learn Dartlang and don't understand how on this language write onClick action for some cases. I know, it's like a java, but i confused. Example: simple case. I have element with class "button" and div element with "dropdown" class. How to ad...
more »

2017-11-29 04:11 (1) Answers

Flutter dateformatter not working correctly

*****EDIT******* So now I have it formatting as I expect, anyone have an idea why once it is in the textfield, if they type an extra character or make a mistake why they would not be able to backspace and delete? Here is the working code for formatt...
more »

2017-11-29 02:11 (1) Answers

Initialize StateFulWidget every time page loads

I have a basic Mobile page in flutter that gets some data from a backend service. I have a StateFulWidget, very similar to example mentioned here
more »

2017-11-28 07:11 (0) Answers

Dart Map to Class

Is there a standard way to convert a map to a object of a user defined class. In python you can do MyClass(**map), which basically unwraps the map into named arguments of constructor of the class. Any pointers/help would be appreciated. ...
more »

2017-11-28 04:11 (2) Answers

Preload an image asset in flutter

I'm building a game with flutter. I have around 130-150mo of pictures. And some of them must be preloaded or else the user experience doesn't feels smooth. I found by myself a way to preload images : final asset = new ExactAssetImage(assetPath); f...
more »

2017-11-27 16:11 (0) Answers

Can we build android widgets in flutter?

The fact that Flutter heavily uses the word widget makes it difficult to find documentation on this topic. On Android (I believe this isn't possible on iOS), we can add widgets on our home dashboard, allowing to see app-related information or to trig...
more »

2017-11-27 06:11 (0) Answers

How to apply a specular map to a child?

I have a specular.png that is varying levels of white transparency, and I'd like to apply it to an underlying child to give it a reflective appearance. I've tried setting a foregroundDecoration to a BoxDecoration with a ColorFilter, and using a Blen...
more »

2017-11-27 00:11 (0) Answers

Stateful vs Stateless Widgets in flutter

What does it mean, within flutter framework, for a widget to be stateful. It defines as any widget which changes its state within its lifetime. But it is a very common practice for StatelessWidget to have a StatefulWidget as one of its child. Doe...
more »

2017-11-26 23:11 (1) Answers

NetworkImage does not work to render url

I tried to render a image with the _renderImage method using a NetworkImage but all what shows up is a big red square. When I render with the _renderImage2 method using it works fine. unfortunatly I need the decorations from and the bod...
more »

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

jQuery and Dart interop with call()

I'm trying to make basical jQuery interop with Dart in order to use jQuery plugins easily. I'm trying to figure out a way of achieving both the classical $("#elementID") DOM query selection and the plugins getters of $.fn.pluginX.methodY() So far I...
more »

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

How to use OverflowBox/SizedOverflowBox?

I'm trying to understand how OverflowBox works. I tried many things. But I never ever managed to get it working, always end up having an exception (that gives little to no explanation). For example, I may want to have a vertical list of a fixed w...
more »

2017-11-22 12:11 (0) Answers

Dart SSL certificate generation

is it possible to generate SSL certificates with the Dart SDK? I want this to use in a Flutter app where users can grant other users authority to their own data, kind of. Thanks in advance. Theo ...
more »

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