PageDecoration constructor

const PageDecoration({
  1. Color? pageColor,
  2. TextStyle titleTextStyle = const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
  3. TextStyle bodyTextStyle = const TextStyle(fontSize: 18.0, fontWeight: FontWeight.normal),
  4. BoxDecoration? boxDecoration,
  5. int imageFlex = 1,
  6. int bodyFlex = 1,
  7. int footerFlex = 1,
  8. FlexFit footerFit = FlexFit.loose,
  9. EdgeInsets imagePadding = const EdgeInsets.only(bottom: 24.0),
  10. EdgeInsets contentMargin = const EdgeInsets.all(16.0),
  11. EdgeInsets? pageMargin = const EdgeInsets.only(bottom: 60.0),
  12. EdgeInsets titlePadding = const EdgeInsets.only(top: 16.0, bottom: 24.0),
  13. EdgeInsets? bodyPadding,
  14. EdgeInsets footerPadding = const EdgeInsets.symmetric(vertical: 24.0),
  15. Alignment bodyAlignment = Alignment.topCenter,
  16. Alignment imageAlignment = Alignment.bottomCenter,
  17. bool fullScreen = false,
  18. double safeArea = 60,
})

Implementation

const PageDecoration({
  this.pageColor,
  this.titleTextStyle = const TextStyle(
    fontSize: 20.0,
    fontWeight: FontWeight.bold,
  ),
  this.bodyTextStyle = const TextStyle(
    fontSize: 18.0,
    fontWeight: FontWeight.normal,
  ),
  this.boxDecoration,
  this.imageFlex = 1,
  this.bodyFlex = 1,
  this.footerFlex = 1,
  this.footerFit = FlexFit.loose,
  this.imagePadding = const EdgeInsets.only(bottom: 24.0),
  this.contentMargin = const EdgeInsets.all(16.0),
  this.pageMargin = const EdgeInsets.only(bottom: 60.0),
  this.titlePadding = const EdgeInsets.only(top: 16.0, bottom: 24.0),
  this.bodyPadding,
  this.footerPadding = const EdgeInsets.symmetric(vertical: 24.0),
  this.bodyAlignment = Alignment.topCenter,
  this.imageAlignment = Alignment.bottomCenter,
  this.fullScreen = false,
  this.safeArea = 60,
}) : assert(pageColor == null || boxDecoration == null,
          'Cannot provide both a Color and a BoxDecoration\n');