Questions tagged as 'dart'

1
answer

What are the main differences between Dart and TypeScript?

We've already had a query comparing two languages that run on top of JavaScript . I think I have missed comparing two languages created for the purpose of creating browser applications and solving JavaScript problems with very different appr...
asked by 04.02.2015 / 17:55
1
answer

How do I validate an e-mail field in Dart?

I created a simple project in Dart whose intention is to validate an email field when a button is clicked, showing an error message . However, the RegExp.hasMath function is always returning false . I do not know what could be wrong. B...
asked by 08.01.2014 / 02:25
1
answer

How do I get the Widget of a Column to expand to the maximum width of the parent (Column)?

Form( child: Column( children: <Widget>[ CustomTextFormField("E-mail"), CustomTextFormField('Senha'), Expanded( child: FittedBox( fit: BoxFit.fitWidth, child: RaisedButton(...
asked by 12.12.2018 / 01:31
1
answer

Flutter - BottomNavigationBar more than three blank items

When I add more than 3 items in the component (BottomNavigationBar), it is leaving my items blank.     
asked by 05.06.2018 / 14:43
1
answer

How to use ternary operator in Flutter / Dart

How to do if/else on a line in Dart / Flutter ? Type: variavel ? null : function() : function2()     
asked by 05.03.2018 / 17:33
1
answer

How to return data from a thread to the layout at runtime on flutter

Is there a way to make a thread using the flutter and return the result of the processing on the screen? I have the following code. In the main class _MyHomePageState I have the layout and function _processo () . The idea is to start the...
asked by 19.12.2018 / 13:42
0
answers

Expansion Tile and ListView

I'm trying to create this layout for an app, I've used an expansion tile inside a Card and a listView below , but when I open expansionTile, hitting the bottom of the screen would this and if the listView has many tiles happens this , I can...
asked by 20.12.2018 / 19:41
1
answer

How to change the border color of a TextFormField?

I would like to change the border color of the TextFormField on login screen to white because the background is gradient and would make it easier to visualize the text. Today I'm using the pattern I created for the theme: ThemeData buildTheme(...
asked by 29.11.2018 / 18:35
1
answer

How to create a single Drawer?

I would like to create a single Drawer for all my application and get a consistency in it. How can I do this without having to rewrite it on all my pages? For example, I have the following Drawer in my HomePage : final d...
asked by 30.11.2018 / 14:02
1
answer

How to use attributes of a subclass of an abstract class?

I have the following scenario: an abstract class "ListItem" and the "HeadingItem" and "Contact" classes. The relationship between them is as follows: ... } abstract class ListItem{ } class HeadingItem implements ListItem{...
asked by 09.11.2018 / 23:39