BNMA w/ Flutter, by Udacity Flashcards
intro to Flutter
child property
exists only in objects that expect one child; e.g. container
children prop
exists in objects that expect multiple children
runApp()
function to run app
main()
in main.dart
, entry point into app
MaterialApp
basic widget for app which comes with title, home, theme, text directionality, back-button press handling, …
scaffold
drawers, app bars, bottom navigation, tabs, and floating action buttons
AppBar
bar at top of app
Text
text widget
Dart top level functions means
functions can exist outside classes
ColorSwatch
a color that has a swatch of related colors
IconData
a description of an icon fulfilled by a font glyph
crossAxisAlignment
How the children should be placed along the cross axis.
edgeInsets
An immutable set of offsets in each of the four cardinal directions.
Used by: Padding, a widget that accepts EdgeInsets to describe its margins.
Icon
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.
_var
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.