PageDecoration class

Constructors

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, int footerFlex = 1, FlexFit footerFit = FlexFit.loose, 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, EdgeInsets footerPadding = const EdgeInsets.symmetric(vertical: 24.0), Alignment bodyAlignment = Alignment.topCenter, Alignment imageAlignment = Alignment.bottomCenter, bool fullScreen = false, double safeArea = 60})
const

Properties

bodyAlignment Alignment
Body alignment
final
bodyFlex int
Flex ratio of the body
final
bodyPadding EdgeInsets?
Padding of body
final
bodyTextStyle TextStyle
TextStyle for title
final
boxDecoration BoxDecoration?
BoxDecoration for page
final
contentMargin EdgeInsets
Margin of content (title + description + footer)
final
footerFit FlexFit
FlexFit of the footer
final
footerFlex int
Flex ratio of the footer
final
footerPadding EdgeInsets
Padding of footer
final
fullScreen bool
Layout the page using the full screen with the image behind the text.
final
hashCode int
The hash code for this object.
no setterinherited
imageAlignment Alignment
Image alignment
final
imageFlex int
Flex ratio of the image
final
imagePadding EdgeInsets
Padding of image
final
pageColor Color?
Background page color
final
pageMargin EdgeInsets?
Margin for page
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeArea double
Safe area of the content. Change to avoid the overlap between the dots and the content
final
titlePadding EdgeInsets
Padding of title
final
titleTextStyle TextStyle
TextStyle for title
final

Methods

copyWith({Color? pageColor, TextStyle? titleTextStyle, TextStyle? bodyTextStyle, BoxDecoration? boxDecoration, int? imageFlex, int? bodyFlex, int? footerFlex, FlexFit? footerFit, EdgeInsets? imagePadding, EdgeInsets? contentMargin, EdgeInsets? pageMargin, EdgeInsets? titlePadding, EdgeInsets? descriptionPadding, EdgeInsets? footerPadding, Alignment? bodyAlignment, Alignment? imageAlignment, bool? fullScreen, double? safeArea}) PageDecoration
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited