PageDecoration constructor
const
PageDecoration({
- Color? pageColor,
- TextStyle titleTextStyle = const TextStyle(fontSize: 20.0, fontWeight: FontWeight.bold),
- TextStyle bodyTextStyle = const TextStyle(fontSize: 18.0, fontWeight: FontWeight.normal),
- BoxDecoration? boxDecoration,
- int imageFlex = 1,
- int bodyFlex = 1,
- EdgeInsets imagePadding = const EdgeInsets.only(bottom: 24.0),
- EdgeInsets contentMargin = const EdgeInsets.all(16.0),
- EdgeInsets? pageMargin = const EdgeInsets.only(bottom: 60.0),
- EdgeInsets titlePadding = const EdgeInsets.only(top: 16.0, bottom: 24.0),
- EdgeInsets? bodyPadding,
- Alignment bodyAlignment = Alignment.topCenter,
- Alignment imageAlignment = Alignment.bottomCenter,
- bool fullScreen = false,
- 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');