Answers for "main and cross axis alignment row in flutter is not working"

3

flutter row cross axis alignment

Row(  
        crossAxisAlignment: CrossAxisAlignment.start,
        mainAxisAlignment: MainAxisAlignment.spaceAround,
        verticalDirection: VerticalDirection.up,
        textBaseline: TextBaseline.alphabetic,
        textDirection: TextDirection.ltr,
        mainAxisSize: MainAxisSize.max,
        children: [
          Text('Row 1'),
          Text('Row 2')
        ],
      ),
Posted by: Guest on August-30-2021
11

flutter column cross axis alignment

Column(  
        crossAxisAlignment: CrossAxisAlignment.center,
        mainAxisAlignment: MainAxisAlignment.center,
        verticalDirection: VerticalDirection.down,
        textBaseline: TextBaseline.alphabetic,
        textDirection: TextDirection.ltr,
        mainAxisSize: MainAxisSize.max,
        children: [
          Text('Column 1'),
          Text('Column 2')
        ],
      ),
Posted by: Guest on August-30-2021

Code answers related to "main and cross axis alignment row in flutter is not working"

Browse Popular Code Answers by Language