Using MPMediaPickerController with Flutter

I'm playing with Dart and Flutter and would like to display a media picker inside my Flutter application. The Flutter part of my application simply has a button which calls platform specific code. I don't believe this part causes the problem so I'm ...
more »

2017-08-09 23:08 (1) Answers

How to touch paint a canvas?

Flutter newbie here. I'm currently trying to build a simple touch-drawing app with Flutter, but cannot work out how to trigger a canvas re-draw. What I have is this: I have a CustomPaint widget which contains a GestureDetector child. The CustomPaint...
more »

2017-08-08 23:08 (1) Answers

How to get the ID token from FirebaseAuth

I am reading some Json files from my firebase database and I am trying to obtain an ID token for the current user to be used in the header as follows: var response = await httpClient.get(url,headers: {'Authorization':"Bearer ${FirebaseAuth.instance...
more »

2017-08-08 10:08 (1) Answers

Make ExpansionTile clickable

I have the flutter code below and am trying to make the text clickable be clickable like a button. I have used the sample code in the flutter gallery and I tried defining a field in the Entry Class a list of FlatButtons final List<FlatButtons> ...
more »

2017-08-08 03:08 (1) Answers

Permanent view with navigation bar in Flutter

I have a scenario where I have 2 views: View 1 View 2 On a button press from View 1, Navigator.of(context).pushnamed('/view2') is invoked, which pushes View 2 to the screen. In this case, the entire view is transitioned from View 1 to View 2. I...
more »

2017-08-04 18:08 (1) Answers

Flutter update 8/1/17 broke Android

Is anyone having any issues on Android with the flutter update on August 1st? I updated yesterday and ever since I have not been able to run on Android emulators while iOS is fine. I get the error: [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Co...
more »

2017-08-04 14:08 (1) Answers

constructor with generic parameters

since recently it is possible to create methods with generic methods e.g.: class Grid2<T> { static Grid2<T> fromLanes<L, T>(List<L> lanes, T generator(L element, int x, int z)) { ... } } but it would be way nicer to...
more »

2017-08-03 13:08 (2) Answers

Flutter: Using the SlideTransition

I'm confused on how to use the SlideTransition, especially about the Position property. Atm I've got an AnimationBuilder in which I want to use a SlideTransition and an AnimationController. How would I get the position of the child of the AnimationBu...
more »

2017-08-01 01:08 (1) Answers

How can I access DOM in AngularDart?

I'm trying to port some JavaScript Polymer elements to AngularDart. I need to be able to do the equivalent of this.$.contentContainer.getBoundingClientRect(); (for those who aren't familiar with Polymer that is basically component.getElementById("co...
more »

2017-08-01 00:08 (2) Answers

Trying to use StageXl library in dart failing

my main.dart file looks like this: import 'dart:html'; import 'package:stagexl/stagexl.dart' as stageXL; void main() { CanvasElement canvas = querySelector("#canvas"); stageXL.Stage stage = new stageXL.Stage(canvas, width: 300, height: 400); ...
more »

2017-07-31 00:07 (0) Answers

Two different setUp methods for the same tests

I currently have two groups of tests that are identical in every way except the setUp() method call. I want to simplify the code so that the set of tests is only defined once but each group runs its own setUp() method and then the identical set of te...
more »

2017-07-30 07:07 (1) Answers