widgets library Null safety

Classes

Align
A widget that aligns its child within itself and optionally sizes itself based on the child's size.
Alignment
Anchor
Annotation
AnnotationBuilder
AnnotationCircle
AnnotationInk
AnnotationPolygon
AnnotationSquare
AnnotationTextField
AnnotationUrl
AspectRatio
Barcode
Barcode generation class
BarcodeBar
Rectangle drawing operation
BarcodeEan
Base class to generate EAN Barcodes [...]
BarcodeElement
Barcode drawing operation
BarcodeText
Text drawing operation
BarcodeWidget
Draw a barcode using String data
BarDataSet
Border
A border of a box, comprised of four sides: top, right, bottom, left.
BorderRadius
An immutable set of radii for each corner of a rectangle.
BorderSide
A side of a border of a box.
BorderStyle
BoxBorder
BoxConstraints
BoxDecoration
BoxShadow
Builder
A platonic widget that calls a closure to obtain its child widget.
Bullet
CartesianGrid
Center
Chart
This widget is in preview and the API is subject to change
ChartGrid
ChartLegend
ChartValue
Checkbox
Circle
CircleAnnotation
CircularProgressIndicator
ClipOval
ClipRect
ClipRRect
Column
ConstrainedBox
A widget that imposes additional constraints on its child.
Container
Context
CustomPaint
Dataset
DecoratedBox
DecorationGraphic
DecorationImage
DecorationSvgImage
DefaultTextStyle
Directionality
Divider
Document
EdgeInsets
Expanded
FittedBox
Scales and positions its child within itself according to fit.
FittedSizes
The pair of sizes returned by applyBoxFit.
FixedAxis<T extends num>
FixedColumnWidth
FlatButton
Flex
FlexColumnWidth
Flexible
A widget that controls how a child of a Row, Column, or Flex flexes.
Font
Lazy font declaration, registers the font in the document only if needed. Tries to register a font only once
FractionalOffset
An offset that's expressed as a fraction of a PdfPoint.
FractionColumnWidth
FullPage
Gradient
A 2D gradient.
GridAxis
GridPaper
A widget that draws a rectilinear grid of lines. The grid is drawn over the child widget.
GridView
Icon
A graphical icon widget drawn with a glyph from a font described in an IconData such as material's predefined IconDatas in Icons.
IconData
A description of an icon fulfilled by a font glyph.
IconThemeData
Defines the color, opacity, and size of icons.
Image
ImageImage
ImageProvider
Identifies an image without committing to the precise final asset
ImageProxy
Inherited
InheritedDirectionality
InheritedWidget
InkAnnotation
InkList
InlineSpan
IntrinsicColumnWidth
LayoutBuilder
Builds a widget tree that can depend on the parent widget's size.
LimitedBox
LinearGradient
A 2D linear gradient.
LinearProgressIndicator
A material design linear progress indicator, also known as a progress bar.
LineChartValue
LineDataSet
ListView
Lorem
LoremText
MeCard
MeCard is a data file similar to vCard but used by NTT DoCoMo in Japan in QR code format for use with Cellular Phones. https://github.com/zxing/zxing/wiki/Barcode-Contents
MemoryImage
MeTuple
Tuple key/value for MeCard elements
MultiChildWidget
MultiPage
Create a mult-page section, with automatic overflow from one page to another [...]
NewPage
Opacity
Outline
Padding
Page
PageTheme
Paragraph
Partition
Partitions
PieDataSet
PieGrid
Placeholder
Polygon
PolygonAnnotation
PolyLineAnnotation
Positioned
A widget that controls where a child of a Stack is positioned.
RadialGradient
A 2D radial gradient.
RadialGrid
Radius
A radius for either circular or elliptical shapes.
RawImage
Rectangle
RichText
Row
Shape
Signature
SingleChildWidget
SizedBox
A box with a specified size.
Spacer
Spacer creates an adjustable, empty spacer that can be used to tune the spacing between widgets in a Flex container, like Row or Column.
SquareAnnotation
Stack
A widget that positions its children relative to the edges of its box.
StatelessWidget
SvgImage
Table
A widget that uses the table layout algorithm for its children.
TableBorder
TableColumnWidth
TableOfContent
TableRow
A horizontal group of cells in a Table.
Text
TextDecoration
A linear decoration to draw near the text.
TextField
TextSpan
TextStyle
Theme
ThemeData
Transform
TtfFont
VerticalDivider
Watermark
Widget
WidgetContext
WidgetSpan
Wrap
A widget that displays its children in multiple horizontal or vertical runs.

Mixins

SpanningWidget

Functions

applyBoxFit(BoxFit fit, PdfPoint inputSize, PdfPoint outputSize) FittedSizes
transformPoint(Matrix4 transform, PdfPoint point) PdfPoint
transformRect(Matrix4 transform, PdfRect rect) PdfRect

Enums

Axis
BarcodeCodabarStartStop
Start and Stop symbols for BCodabar
BarcodeQRCorrectionLevel
QR Code Correction Level
BarcodeTextAlign
Text alignement inside the BarcodeText zone
BarcodeType
Supported barcode types
BoxFit
BoxShape
CrossAxisAlignment
DecorationPosition
FlexFit
FontStyle
FontWeight
MainAxisAlignment
MainAxisSize
Overflow
Whether overflowing children should be clipped, or their overflow be visible.
PageOrientation
PaintPhase
Pdf417SecurityLevel
Error correction levels
PieLegendPosition
StackFit
How to size the non-positioned children of a Stack.
TableCellVerticalAlignment
TableWidth
TextAlign
TextDecorationStyle
TextDirection
TextOverflow
How overflowing text should be handled.
TileMode
Defines what happens at the edge of the gradient.
Type1Fonts
VerticalDirection
WrapAlignment
How Wrap should align objects.
WrapCrossAlignment
Who Wrap should align children within a run in the cross axis.

Typedefs

BuildCallback = Widget Function(Context context)
BuildListCallback = List<Widget> Function(Context context)
CustomPainter = dynamic Function(PdfGraphics canvas, PdfPoint size)
GridAxisBuildLabel = Widget Function(num value)
GridAxisFormat = String Function(num value)
IndexedWidgetBuilder = Widget Function(Context context, int index)
LayoutWidgetBuilder = Widget Function(Context context, BoxConstraints? constraints)
The signature of the LayoutBuilder builder function.
OnCellDecoration = BoxDecoration Function(int index, dynamic data, int rowNum)
OnCellFormat = String Function(int index, dynamic data)
WidgetBuilder = Widget Function(Context context)

Exceptions / Errors

BarcodeException
Exception raised if the library cannot generate the Barcode