BNMA w/ Flutter, by Udacity Flashcards

intro to Flutter

1
Q

child property

A

exists only in objects that expect one child; e.g. container

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

children prop

A

exists in objects that expect multiple children

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

runApp()

A

function to run app

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

main()

A

in main.dart, entry point into app

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

MaterialApp

A

basic widget for app which comes with title, home, theme, text directionality, back-button press handling, …

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

scaffold

A

drawers, app bars, bottom navigation, tabs, and floating action buttons

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

AppBar

A

bar at top of app

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

Text

A

text widget

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

Dart top level functions means

A

functions can exist outside classes

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

ColorSwatch

A

a color that has a swatch of related colors

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

IconData

A

a description of an icon fulfilled by a font glyph

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

crossAxisAlignment

A

How the children should be placed along the cross axis.

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

edgeInsets

A

An immutable set of offsets in each of the four cardinal directions.
Used by: Padding, a widget that accepts EdgeInsets to describe its margins.

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

Icon

A

A graphical icon widget drawn with a glyph from a font described in an IconData such as material’s predefined IconDatas in Icons.

Icons are not interactive. For an interactive icon, consider material’s IconButton.

There must be an ambient Directionality widget when using Icon. Typically this is introduced automatically by the WidgetsApp or MaterialApp.

This widget assumes that the rendered icon is squared. Non-squared icons may render incorrectly.

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

_var

A

A leading underscore character ( _ ) indicates that a member is private to its library. This is not mere convention, but is built into the language itself.

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

InkWell

A

A rectangular area of a Material that responds to touch; like touchable opacity

17
Q

all layout is done with …

A

widgets

18
Q

Route is…

A

a widget which takes you to a page or screen

19
Q

use route where?

A
e.g.
MaterialApp(
    home: CategoryRoute
\_\_\_
CategoryRoute(
    Scaffold
20
Q

ListView, GridView

A

efficiently show a grid/list of items

21
Q

navigator widget

A

manages routes; push and pop routes to move from screen to screen

22
Q

Navigator, detail

A

A widget that manages a set of child widgets with a stack discipline.

Many apps have a navigator near the top of their widget hierarchy in order to display their logical history using an Overlay with the most recently visited pages visually on top of the older pages. Using this pattern lets the navigator visually transition from one page to another by moving the widgets around in the overlay. Similarly, the navigator can be used to show a dialog by positioning the dialog widget above the current page

23
Q

Navigator.of(context)

A

it’s most common to use the navigator created by a WidgetsApp or a MaterialApp widget. You can refer to that navigator with Navigator.of

24
Q

MaterialPageRoute

A

A modal route that replaces the entire screen with a platform-adaptive transition.

25
Q

parts of widgets:

StatelessWidget & StatefulWidget, constructor & ?

A

stateless: constructor -> build (loop)
stateful: constructor -> createState (loop)

26
Q

when variables inside the state are modified, widget does or does not automatically re-render?

A

does not

27
Q

how to get re-render with state change?

A

call setState from widget implementor, changing the state object associated with StatefulWidget

28
Q

State<>

A
State<> is a widget class extended to create state objects for a StatefulWidget. 
_StatefulWidgetClassState extends State
29
Q

widgets extending State inherit overrides for:

A

<ul>
<li>build, which describes the part of the user interface represented by this widget</li>
<li>setState, to notify the framework that the internal state of this object has changed</li>
<li>
</ul>
</li></ul>

30
Q

widgets extending StatefulWidget inherit overrides for:

A

<ul>
<li>createElement</li>
<li>createState</li>
</ul>

31
Q

State class property .widget; accessed inside extended State class via widget, is what?

A

A State object’s configuration is the corresponding StatefulWidget instance

32
Q

stateless -> stateful, what happens to build()?

A

moves from stateless class to state class

33
Q

Theme used for?

A

Applies a theme to descendant widgets.

A theme describes the colors and typographic choices of an application.
e.g.
determine platform, and render widgets appropriately