AppBrewery - BMI Flashcards

1
Q

theme

A

define a color palette

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

cookbook

A

https://flutter.dev/docs/cookbook for task examples

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

primary color

A

The background color for major parts of the app (toolbars, tab bars, etc)

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

accent color

A

The foreground color for widgets (knobs, text, overscroll edge effect, etc).

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

Color constructor

A

typical hexcode, ARGB, …

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

color for text in them

A

textTheme

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

how to change theme for local widget

A

wrap widget in Theme widget

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

ThemeData.dark().copyWith(…)

A

create a copy of this theme, but edit inner parameters

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

color of container is shorthand for setting

A

color of box decoration of container

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

DRY

A

Don’t Repeat Yourself

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

how to make a parameter required

A

add @required before parameter;
class ExampleClass {
bool isBool;
ExampleClass({@required this.isBool});

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

immutability

A

cannot be changed

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

a stless widget is mutable or immutable?

A

immutable

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

const v final

A

const figured out at compile time; final set only once
final could be set to final string currentTime = DateTime.now();
const could not

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

Dart class initializer order

A
  1. init list 2. constructor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

initializer list

A

init properties (including final ones) before initialization

17
Q

flatbutton vs inkwell vs gesturerecognizer

A

flatbutton stylized + opinionated
inkwell has onPressed and visual feedback (ink splash)
gesturerecognizer no visual feedback nor style, many gestures

18
Q

function type

A

so even functions are objects and have a type, Function.

19
Q

void in Dart

A

denotes absence; return type of a function; can be anything but can’t be used for anything

20
Q
void onTapMale() {
    // ...
  }
means what?
A

onTapMale is a function (of type Function) which returns nothing (void)

21
Q

enum syntax

A

enum EnumName { ta, tb, tc, …}

EnumName.ta

22
Q
syntactic equivalent of 
void myFunc () {}
A

Function myFunc = (){}

23
Q

constants prefix

A

k

24
Q

constants dropdown

A

k …

25
Q

add a theme to a particular widget

A

wrap that widget in a theme of its type

26
Q

.of(), .copyWith()

A

make this one of a context, then copy it with certain overriding changes