RawThemeData class abstract

Constructors

RawThemeData({Color primary = const Color(0xff409EFF), Color secondary = const Color(0xff409EFF), Color success = const Color(0xff67C23A), Color info = const Color(0xff909399), Color warning = const Color(0xffE6A23C), Color error = const Color(0xffF56C6C), Color bgColor = const Color.fromRGBO(250, 250, 250, 1.0), Color borderColor = const Color.fromRGBO(208, 208, 208, 1.0)})
const
RawThemeData.dark({Color primary = const Color(0xff409EFF), Color secondary = const Color(0xff0164c6), Color success = const Color(0xff67C23A), Color info = const Color(0xff909399), Color warning = const Color(0xffE6A23C), Color error = const Color(0xffF56C6C), Color bgColor = const Color.fromRGBO(43, 43, 43, 1.0), Color borderColor = const Color.fromRGBO(172, 172, 172, 1.0)})
const

Properties

bgColor Color
全局背景色
final
borderColor Color
边框颜色
final
error Color
错误颜色
final
hashCode int
The hash code for this object.
no setterinherited
info Color
普通颜色
final
primary Color
主颜色
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary Color
次要主题色,这是一个低对比度主颜色,有时候主题色可能会应用高对比度颜色(例如 yellow), 这会导致一些组件显得格外刺眼,所以部分组件会取 secondary 主题色(例如 Switch)
final
success Color
成功颜色
final
warning Color
警告颜色
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