SplitColorBackground class
A widget with header and body sections that each have different background colors.
Reminiscent of various designs seen on dribbble, uplabs, and other design websites that show a header section with one background color, a body section with a different background color, and rounded corners on the top of the body section.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SplitColorBackground
Constructors
- SplitColorBackground({Key? key, int headerFlex = 1, required Widget header, Color? headerColor, int bodyFlex = 4, required Widget body, double topLeftCornerRadius = 10, double topRightCornerRadius = 10, Color? bodyColor, AppBar? appBar, FloatingActionButton? floatingActionButton, FloatingActionButtonLocation? floatingActionButtonLocation, })
-
A widget with header and body sections that each have different background colors.
const
Properties
- appBar → AppBar?
-
An optional AppBar
final
- body → Widget
-
The widget that will be used as the body
final
- bodyColor → Color?
-
The color for the body widget
final
- bodyFlex → int
-
The flex property of the Flexible containing the body widget.
final
-
An optional BottomNavigationBar
final
- floatingActionButton → FloatingActionButton?
-
An optional FloatingActionButton
final
- floatingActionButtonLocation → FloatingActionButtonLocation?
-
An optional FloatingActionButtonLocation
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Widget
-
The widget that will be used as the header
final
- headerColor → Color?
-
The color for the header widget
final
- headerFlex → int
-
The flex property of the Flexible containing the header widget.
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.
no setterinherited
- topLeftCornerRadius → double
-
The radius for the top left corner of the body.
final
- topRightCornerRadius → double
-
The radius for the top right corner of the body.
final
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
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.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
inherited