PageViewModel class

View model for pages.

Constructors

PageViewModel({Color? pageColor, Widget pageBackground = const SizedBox(), String? iconImageAssetPath, Color bubbleBackgroundColor = const Color(0x88FFFFFF), Color? iconColor, Widget title = const SizedBox(), Widget body = const SizedBox(), Widget mainImage = const SizedBox(), Widget? bubble, TextStyle? textStyle, TextStyle titleTextStyle = const TextStyle(color: Colors.white, fontSize: 50.0), TextStyle bodyTextStyle = const TextStyle(color: Colors.white, fontSize: 24.0)})
const

Properties

body Widget
Widget for the body.
final
bodyTextStyle TextStyle
Sets TextStyle for body.
final
bubble Widget?
Inner bubble widget.
final
bubbleBackgroundColor Color
Color for background of progress bubbles.
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color?
Icon color.
final
iconImageAssetPath String?
Icon image path.
final
mainImage Widget
Main widget.
final
mergedBodyTextStyle TextStyle
no setter
mergedTitleTextStyle TextStyle
no setter
pageBackground Widget
Widget shown in the background and can be used instead of pageColor or for the full customization of the page, e.g. having a gradient background or adding a background image.
final
pageColor Color?
Page background color.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textStyle TextStyle?
Sets TextStyle for titleTextStyle and bodyTextStyle.
final
title Widget
Widget for the title.
final
titleTextStyle TextStyle
Set TextStyle for title.
final

Methods

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