Layout constructor

const Layout({
  1. Key? key,
  2. AppBar? appBar,
  3. required List<Widget> children,
  4. double top = 32.0,
  5. double bottom = 32.0,
  6. double spacing = 32.0,
  7. double sideMargin = 0,
  8. double maxWidth = 400.0,
  9. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  10. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
})

Implementation

const Layout({
  Key? key,
  this.appBar,
  required this.children,
  this.top = 32.0,
  this.bottom = 32.0,
  this.spacing = 32.0,
  this.sideMargin = 0,
  this.maxWidth = 400.0,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.mainAxisAlignment = MainAxisAlignment.center,
}) : super(key: key);