getColumnCrossAxisAlignment method
dynamic
getColumnCrossAxisAlignment(
- dynamic gravity
Implementation
getColumnCrossAxisAlignment(gravity) {
var crossAxisAlignment = CrossAxisAlignment.center;
switch (gravity) {
case Gravity.bottom:
break;
case Gravity.top:
break;
case Gravity.left:
case Gravity.leftTop:
case Gravity.leftBottom:
crossAxisAlignment = CrossAxisAlignment.start;
break;
case Gravity.right:
case Gravity.rightTop:
case Gravity.rightBottom:
crossAxisAlignment = CrossAxisAlignment.end;
break;
default:
break;
}
return crossAxisAlignment;
}