PageViewModel class

Constructors

PageViewModel({String? title, Widget? titleWidget, String? body, Widget? bodyWidget, Widget? image, Widget? footer, bool reverse = false, PageDecoration decoration = const PageDecoration(), bool useScrollView = true, ScrollViewKeyboardDismissBehavior scrollViewKeyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual, bool useRowInLandscape = false})

Properties

body String?
Text of page (description)
final
bodyWidget Widget?
Widget content of page (description)
final
decoration PageDecoration
Page decoration Contain all page customizations, like page color, text styles
final
Footer widget, you can add a button for example
final
hashCode int
The hash code for this object.
no setterinherited
image Widget?
Image of page Tips: Wrap your image with an alignment widget like Align or Center
final
reverse bool
If widget Order is reverse - body before image
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollViewKeyboardDismissBehavior ScrollViewKeyboardDismissBehavior
Keyboard dismiss behavious for scrollView
final
title String?
Title of page
final
titleWidget Widget?
Title of page
final
useRowInLandscape bool
Use Row instead of Column when in landscape to place image next to the content.
final
useScrollView bool
Wrap content in scrollView
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