UNIT 2: FLUTTER Flashcards

1
Q
  • compiled, statically typed, object oriented, procedural programming language
  • very mainstream structure much like other OO languages, making it easy to pick up folks who have experience with Java, C++, C#
  • add some features that developers in those other languages would not expect but are very cool nonetheless
A

Dart

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

can store any data type; data type can change anytime

A

dynamic

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

data type is inferred from the value on the right side “=”

A

var

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

variable once set, cannot be reassigned

A

final

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

value set at compile time, not run time

A

const

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

variables are initialized to null

A
  • int x
  • double y
  • bool z
  • string s
  • dynamic d
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

the process of inserting variable values into placeholders in a string literal. To concatenate strings in Dart, we can utilize string interpolation. We use the ${} symbol to implement string interpolation in your code.

A

String interpolation $

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

multiline strings

A

create using “””

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

spread elements into the array

A

spread operator …

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

they can be passed down like data, returned from a function, passed into a function as a parameter or set to equal a variable

A

functions are first-class objects

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

function that returns a value in one line of code

A

Big arrow
=>

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

sendEmail(‘ceo@blue.company’,’Pop’);
to
sendEmail(subject:’Pop’, atAddress: ‘ceo@blue.company’);

A

named function parameters

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

Person p = Person();

A

ommit “new” and “this”

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

shorter way of dart classess which rceive paramaters

A

class constructor parameter firsthand

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

all members of dart are what in default

A

public

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

return to this class but before you do, do something with a return method

A

cascading operator
(..)

17
Q

Person.withName

A

Named constrcutor example

18
Q

foundational widgets are the building blocks of everything we create - 160 of them

A

flutter

19
Q
  • certain widgets may hold value that came from storage, internet, or user themselves
  • display value to the user and get value from the user into the app
A

value widget
* CheckBox
* Icon
* IconButton

20
Q

gives controls in the making scene of layout properly

A

layout widget
* Card
* Center
* Column

21
Q

when your screen has multiple scenes, you’ll need a way to move them

A

navigation widget
* TabBar
* TabBarView
* MaterialApp

22
Q

not all widgets fall in the neat category, these are the miscellaneous widgets

A

other widgets
* theme
* transform
* transition

23
Q

Flutter’s excellent architechture was influenced from

A

React

24
Q

shows the tiny copy of all the widgets in the screen

A

element tree

25
Q

Four widget categories

A
  1. value widget
  2. layout widget
  3. navigation widget
  4. other widget
26
Q

it is needed so rarely that we are going to be satisfied if you understand that:

A
  1. keys exist and why flutter need them
  2. if widgets are not redrawn as expected during data changes, keys solve the problem
  3. u have the oppportunity to assign keys to a certain widget
27
Q

flutter formula

A

Scene = f(data)

28
Q

dart syntax

A
  1. list input parameters in the constructors
  2. make sure to use “this”
  3. mark corresponding class as final
28
Q
  • does not maintain its own state
  • just display the information
  • always use this widget
A

stateless

29
Q

data within the widget that can chanhe during the lifetime

A

stateful

30
Q

basket properties that can be added in to any class

A

mixin