align flutter code example

Example 1: flutter align top right

Align(
  alignment: Alignment.topRight,
  child: Text("widget"),
)

Example 2: align bottom flutter

// Use Align if have only one child, if have multiple:
return Column(
  crossAxisAlignment: CrossAxisAlignment.center,
  mainAxisSize: MainAxisSize.max,
  mainAxisAlignment: MainAxisAlignment.end,
  children: <Widget>[
      //your elements here
  ],
);

Example 3: Align widget

Center(
  child: Container(
    height: 120.0,
    width: 120.0,
    color: Colors.blue[50],
    child: Align(
      alignment: Alignment(0.5, 0.6),
      child: FlutterLogo(
        size: 60,
      ),
    ),
  ),
)