Layout constructor

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

Implementation

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