MainContainerComponentOptions class

MainContainerComponentOptions - Configuration options for MainContainerComponent.

Properties:

  • backgroundColor (Color): Background color of the container.
  • children (List<Widget>): List of child widgets to be displayed inside the container.
  • containerWidthFraction (double): Fraction of the screen width that the container should occupy (default is 1.0).
  • containerHeightFraction (double): Fraction of the screen height that the container should occupy (default is 1.0).
  • marginLeft (double): Left margin of the container (default is 0.0).
  • marginRight (double): Right margin of the container (default is 0.0).
  • marginTop (double): Top margin of the container (default is 0.0).
  • marginBottom (double): Bottom margin of the container (default is 0.0).

Example Usage:

MainContainerComponentOptions(
  backgroundColor: Colors.blue,
  children: [
    Text("Child 1"),
    Text("Child 2"),
  ],
  containerWidthFraction: 0.8,
  containerHeightFraction: 0.6,
  marginLeft: 10,
  marginRight: 10,
  marginTop: 20,
  marginBottom: 20,
);

Constructors

MainContainerComponentOptions({required Color backgroundColor, required List<Widget> children, double containerWidthFraction = 1.0, double containerHeightFraction = 1.0, double marginLeft = 0.0, double marginRight = 0.0, double marginTop = 0.0, double marginBottom = 0.0})
Constructs a MainContainerComponentOptions object.
const

Properties

backgroundColor Color
The background color of the container.
final
children List<Widget>
The list of child widgets to be displayed inside the container.
final
containerHeightFraction double
The fraction of the screen height that the container should occupy.
final
containerWidthFraction double
The fraction of the screen width that the container should occupy.
final
hashCode int
The hash code for this object.
no setterinherited
marginBottom double
The bottom margin of the container.
final
marginLeft double
The left margin of the container.
final
marginRight double
The right margin of the container.
final
marginTop double
The top margin of the container.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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