flutter Flashcards

1
Q

ctrl + shift + p

A

flutter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

declaration variables

A

int edad = 25;
double altura = 1.75;
String nombre = “Juan”;
bool esMayor = true;

inferencia de tipo
var altura = 1.75;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

diference between: final // const
both don’ t changes once declared

A

final: at runtime
final hora = DateTime.now().hour;
final nombre = obtenerNombreUsuario();

const: in the start
const pi = 3.14159;
const NOMBRE_APP = “Mi Aplicación”;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
A

$count = 100
print(‘$count’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

flutter: select devices

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

widgets => legos

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

types of widgets

A

statelessWidgets
without state

final name=’western’

statefullWidgets
with state

String nombre=’dress up ‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

trees of widgets

A

only begin in a simple widget

tree of vectors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

where is main

A

my_carptet/lib/main.dart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

hello world

A

example 1

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Text(‘Hello World!’),
);
}
}

example 2

class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Center(
child: Text(‘Hello, World!’),
)
);
}
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

debugger (di-ba-guer) // depurador

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

modify widget

A

ctrol + .

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

scaffold (escafolf => andamio)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

if have more than => 2 CHILDREN

A

you should use => COLUM

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
A