AbsoluteLayout.centeredHorizontally constructor

const AbsoluteLayout.centeredHorizontally({
  1. dynamic top,
  2. dynamic bottom,
})

Helper constructor for centering horizontally only

Implementation

const AbsoluteLayout.centeredHorizontally({
  this.top,
  this.bottom,
}) : left = "50%",
     right = null,
     translateX = "-50%",
     translateY = null;