BaseThemeData class

BaseThemeData Special properties values global setting 参考 ThemeData

Annotations

Constructors

BaseThemeData({Brightness brightness, double appBarHeight, bool appBarBackdropFilter = true, bool appBarAutoSetMiddleColor = false, bool appBarAutoSetLeadingColor = false, bool appBarAutoSetTrailingColor = false, bool appBarAutoSetBottomColor = false, bool appBarTransitionBetweenRoutes = true, bool appBarCenterTitle, ThemeData materialTheme, CupertinoThemeData cupertinoTheme, bool routeFullscreenGackGesture = false, Color sectionDividerColor, Color tileBackgroundColor, Map<String, dynamic> cupertino, Map<String, dynamic> material})
factory
BaseThemeData.raw({@required Brightness brightness, @required double appBarHeight, @required Map<String, dynamic> cupertino, @required Map<String, dynamic> material, @required bool appBarBackdropFilter, @required bool appBarAutoSetMiddleColor, @required bool appBarAutoSetLeadingColor, @required bool appBarAutoSetTrailingColor, @required bool appBarAutoSetBottomColor, @required bool appBarTransitionBetweenRoutes, @required bool appBarCenterTitle, @required ThemeData materialTheme, @required CupertinoThemeData cupertinoTheme, @required bool routeFullscreenGackGesture, @required Color sectionDividerColor, @required Color tileBackgroundColor})
const

Properties

appBarAutoSetBottomColor bool
BaseAppBar.autoSetBottomColor
final
appBarAutoSetLeadingColor bool
BaseAppBar.appBarAutoSetLeadingColor
final
appBarAutoSetMiddleColor bool
BaseAppBar.appBarAutoSetMiddleColor
final
appBarAutoSetTrailingColor bool
BaseAppBar.autoSetTrailingColor
final
appBarBackdropFilter bool
BaseAppBar.appBarBackdropFilter
final
appBarCenterTitle bool
BaseAppBar.appBarCenterTitle
final
appBarHeight double
BaseAppBar.height
final
appBarTransitionBetweenRoutes bool
BaseAppBar.appBarTransitionBetweenRoutes
final
brightness Brightness
final
cupertino Map<String, dynamic>
See also: [...]
final
cupertinoTheme CupertinoThemeData
CupertinoThemeData 在Material模式下使用Mupertino组件时, 可以使用 CupertinoTheme.of(context) 获取到BaseApp.cupertinoTheme [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
material Map<String, dynamic>
final
materialTheme ThemeData
ThemeData 在Cupertino模式下使用Material组件时, 可以使用 Theme.of(context) 获取到BaseApp.materialTheme [...]
final
routeFullscreenGackGesture bool
BaseRoute.fullscreenGackGesture
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sectionDividerColor Color
BaseSection's divider's color BaseSection 的diviver的颜色
final
tileBackgroundColor Color
BaseTile's BackgroundColor BaseTile 的背景颜色 建议适应BaseColor().build(context), 构建2种颜色
final

Methods

copyWith({Brightness brightness, double appBarHeight, bool appBarBackdropFilter, bool appBarAutoSetMiddleColor, bool appBarAutoSetLeadingColor, bool appBarAutoSetTrailingColor, bool appBarAutoSetBottomColor, bool appBarTransitionBetweenRoutes, bool appBarCenterTitle, ThemeData materialTheme, CupertinoThemeData cupertinoTheme, bool routeFullscreenGackGesture, Color sectionDividerColor, Color tileBackgroundColor, Map<String, dynamic> cupertino, Map<String, dynamic> material}) BaseThemeData
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
valueFromCupertino(String key, dynamic value) → dynamic
will get the parameter value from cupertino first. [...]
valueFromMaterial(String key, dynamic value) → dynamic
will get the parameter value from material first. [...]

Operators

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