OPopupContent class Null safety

A grid of popup content. It keeps each part of popup in a proper place:

  • header, content and action row are centered
  • each part is limited proportionally
    • width: max device width minus 20px
    • height:
      • header: 1/3 of max device height minus 100px
      • content: 2/3 of max device height minus 100px
      • actionRow: all space left
  • content is scrollable vertically

At least one of the fields must be set: header, content or actionRow.

Inheritance

Constructors

OPopupContent({Widget? header, Widget? content, Widget? actionRow, Key? key})
Creates an instance of OPopupContent
const

Properties

actionRow Widget?
Popup actionRow.
final
content Widget?
Popup content.
final
hashCode int
The hash code for this object.
@nonVirtualread-onlyinherited
Popup header.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

actionRowBuilder(BuildContext context) Widget
Builds action row. You can overwrite this method if you want to customize action row.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
contentBuilder(BuildContext context) Widget
Builds content inside LimitedBox. You can overwrite this method if you want to customize content.
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protectedinherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
headerBuilder(BuildContext context) Widget
Builds header inside LimitedBox. You can overwrite this method if you want to customize header.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
@nonVirtualinherited

Static Methods

standardizedHeader(String headerText) Widget
Creates unified (color: Colors.white, fontWeight: FontWeight.bold) headers inside OPopupContent.standardizedText.
standardizedText(String text, {TextStyle? style}) Widget
Creates unified (color: Colors.white, textAlign: TextAlign.center) text inside Scrollbar.