Developer's notes

Get unlimited access to all of programming knowledges for less than 30 min

Flutter ToggleButtons

Flutter ToggleButtons we will learn how to use ToggleButtons widget. Following is a simple and quick code snippet on how to use ToggleButtons widget. Following code should go to your State class.

Flutter Table

Flutter Table widget can be used to display items in a table layout. Flutter Table widget has properties like border, columnWidths, textDirection, etc., that help us to enhance or modify the look of the table layout.

Flutter - Switch

Flutter Switch is used to toggle a setting between on/off which is true/false respectively. When the switch is on, the value returned by the Switch onChanged property is true, while the switch is off, onChanged property returns false.

Flutter - BoxShadow

Flutter BoxShadow Flutter BoxShadow class is used to display a shadow cast by the widget. SyntaxThe syntax of BoxShadow() constructor with the parameters and their default values is

Flutter - Banner Widget

create a Flutter Application with a Banner widget. Banner widget’s child is a Container widget with Text. We shall display the banner on the top left of the the child Container.

Flutter Image – Rounded Corners

Flutter Image – Rounded Corners To display an image with rounded corners or circular shaped corners, place the Image widget as child of ClipRRect widget with circular border radius specified for the ClipRRect widget.

Dart - variables

In Dart, all variables are declared public (available to all) by default, but by starting the variable name with an underscore (_), you can declare it as private.

Flutter Dart - Comments

Single-line comments begin with //, and the Dart compiler ignores everything to the end of the line. Multiline comments begin with /* and end with */. The Dart compiler ignores everything between the slashes.

View more notes