Answers for "alignment at end flutter"

2

flutter align widget

Center(
        child: Container(
          color: Colors.blue[100], 
          height: 200.0,
          width: 200.0,
          child: Align(
            alignment: Alignment.center, // or AlignmentDirectional.center,
                     //Alignment(0.0,0.0) value must be 1 to -1
            child: Text('Align')
          )
        ),
      )
Posted by: Guest on August-29-2021
-1

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
  ],
);
Posted by: Guest on August-02-2020

Code answers related to "Dart"

Browse Popular Code Answers by Language