Overlay a line on top of a component in Flutter

I have the following layout in one of my components and would like to put a line on top of that like this: That is my current code and already searched through the API documentation of Flutter for a while now and didn't find something suitable to a...
more »

2017-09-09 18:09 (2) Answers

Flutter TextField text not printing to variable?

My textfield text for onChanged: I'm trying to change a variable I've declared in the same class and have it print in a voided function. Please explain how to print my textfield text. class LoginPageState extends State<LoginPage> { @overri...
more »

2017-09-05 07:09 (2) Answers

Can FlutterLogo be made to stretch-to-fill?

I would like to display a large FlutterLogo in my app: https://docs.flutter.io/flutter/material/FlutterLogo-class.html In order to account for varying screen sizes I would like to make it stretch-to fill. Is that possible? Or do I need to use a Me...
more »

2017-09-02 00:09 (2) Answers

Do Dart property result need to cache?

Do I need to cache Dart property result in release flutter VM for the best of the best performance? It dartpad, cache will improve performance. class Piggybank { List<num> moneys = []; Piggybank(); save(num amt) { moneys.add(amt); ...
more »

2017-08-31 07:08 (1) Answers

How to do a scale open animation in Flutter?

I'm trying to do this animation in flutter : https://material.io/guidelines/motion/choreography.html#choreography-creation My problem is that I have absolutely no idea how to do that. As far as I know, widgets in flutter don't know their position...
more »

2017-08-30 00:08 (1) Answers

How to play two sounds at the same time?

I've been trying a few things with sounds in flutter lately . Using audioPlayer plugin. But I'm facing a wall. I have both a background music, and small sounds effects. The problem is that I can't play both at once. If I play the background music, ...
more »

2017-08-29 20:08 (2) Answers

New dart file doesn't use flutter?

I'm using classes from a new dart file in flutter, but it doesn't use the same dependencies and autocompletes as my main.dart file even after importing import 'package:flutter/material.dart'; and import 'package:flutter/services.dart';. What am I do...
more »

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

Multi-line Textfield in flutter

It may sounds easy but : How can we do a multi-line editable textfield in flutter ? TextField works only with a single line. Edit : some precisions because seems like it's not clear. While you can set multiline to virtually wrap the text content, ...
more »

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

setState doesn't update the user interface

I've been facing some problems related to the setState function while using Stateful Widgets that updates itself with the help of Timers. The code below show 2 main classes that replicate how I came to find this error. The Text Widget "Lorem" should ...
more »

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

Flutter ListView shrink wrap - nested ListView

I have a ListView inside a ListView and the inner ListView doesn't know how height it should be so I have to give it a specific height with for example a SizedBox. However the problem is that I actually want the inner ListView to shrink wrap so that ...
more »

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

Flutter - Drawing a rectangle in bottom

I'm trying to draw a rectangle at the bottom only the Rect object Rect.fromLTRB is not drawing. I do not know if I'm interpreting the Rect object in the wrong way or I'm writing the drawRect object erroneously. Could you help me draw a rectangle in...
more »

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

DrawerItem class missing in flutter Dart

I am currently learning to develop apps using flutter, I saw a video where DrawerItem class is used and when I type DrawerItem it shows me an error stating that the class is missing . DrawerHeader works fine. Could anyone help me what to do ...
more »

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

Flutter ListView not updating

I wanted to create a ListView in Flutter that update when new data arrives. I am using a RefreshIndicator that triggers the list loading for testing. For my list I am using a ListBuilder to map my objects to view objects. From what I understand, the...
more »

2017-08-12 11:08 (1) Answers