SmoothCard class Null safety

Renders a Material card with elevation, shadow, Border radius etc... Note: If the caller updates BoxDecoration of the header or child widget, the caller must also set the borderRadius to ROUNDED_RADIUS in BoxDecoration. Note: padding applies to both header and body, if you want to have a padding only for body and not for header (or vice versa) set it to zero here and set the padding explicitly in the desired element.

Constructors

SmoothCard({required dynamic child, dynamic color, dynamic margin = const EdgeInsets.symmetric(horizontal: SMALL_SPACE, vertical: VERY_SMALL_SPACE), dynamic padding = const EdgeInsets.all(5.0), double elevation = 8})
const
SmoothCard.flat({required dynamic child, dynamic color, dynamic margin = const EdgeInsets.only(right: SMALL_SPACE, left: SMALL_SPACE, top: VERY_SMALL_SPACE, bottom: VERY_SMALL_SPACE), dynamic padding = const EdgeInsets.all(5.0), double elevation = 0})
const

Properties

child → dynamic
final
color → dynamic
final
elevation double
final
hashCode int
The hash code for this object. [...]
read-only, inherited
margin → dynamic
final
padding → dynamic
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

build(dynamic context) → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited