Inheritance
System.Object
ThemeData
public class ThemeData : Diagnosticable, IEquatable<ThemeData>
Constructors
ThemeData(Nullable<Brightness>, MaterialColor, Color, Nullable<Brightness>, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, String, TextTheme, TextTheme, TextTheme, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, SliderThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)
Declaration
public ThemeData(Brightness? brightness = default(Brightness? ), MaterialColor primarySwatch = null, Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color canvasColor = null, Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, Color buttonColor = null, ButtonThemeData buttonTheme = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, string fontFamily = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, SliderThemeData sliderTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
Parameters
Fields
Declaration
public readonly Color accentColor
Field Value
Declaration
public readonly Brightness accentColorBrightness
Field Value
Declaration
public readonly IconThemeData accentIconTheme
Field Value
accentTextTheme
Declaration
public readonly TextTheme accentTextTheme
Field Value
Declaration
public readonly AppBarTheme appBarTheme
Field Value
Declaration
public readonly Color backgroundColor
Field Value
Declaration
public readonly Color bottomAppBarColor
Field Value
Declaration
public readonly BottomAppBarTheme bottomAppBarTheme
Field Value
Declaration
public readonly Brightness brightness
Field Value
Declaration
public readonly Color buttonColor
Field Value
Declaration
public readonly ButtonThemeData buttonTheme
Field Value
Declaration
public readonly Color canvasColor
Field Value
Declaration
public readonly Color cardColor
Field Value
Declaration
public readonly CardTheme cardTheme
Field Value
Declaration
public readonly ChipThemeData chipTheme
Field Value
Declaration
public readonly ColorScheme colorScheme
Field Value
Declaration
public readonly Color cursorColor
Field Value
Declaration
public readonly Color dialogBackgroundColor
Field Value
Declaration
public readonly DialogTheme dialogTheme
Field Value
Declaration
public readonly Color disabledColor
Field Value
Declaration
public readonly Color dividerColor
Field Value
Declaration
public readonly Color errorColor
Field Value
Declaration
public readonly Color highlightColor
Field Value
Declaration
public readonly Color hintColor
Field Value
Declaration
public readonly IconThemeData iconTheme
Field Value
Declaration
public readonly Color indicatorColor
Field Value
Declaration
public readonly InputDecorationTheme inputDecorationTheme
Field Value
Declaration
public readonly MaterialTapTargetSize materialTapTargetSize
Field Value
pageTransitionsTheme
Declaration
public readonly PageTransitionsTheme pageTransitionsTheme
Field Value
Declaration
public readonly RuntimePlatform platform
Field Value
Type |
Description |
RuntimePlatform |
|
Declaration
public readonly Color primaryColor
Field Value
Declaration
public readonly Brightness primaryColorBrightness
Field Value
Declaration
public readonly Color primaryColorDark
Field Value
Declaration
public readonly Color primaryColorLight
Field Value
Declaration
public readonly IconThemeData primaryIconTheme
Field Value
primaryTextTheme
Declaration
public readonly TextTheme primaryTextTheme
Field Value
Declaration
public readonly Color scaffoldBackgroundColor
Field Value
Declaration
public readonly Color secondaryHeaderColor
Field Value
Declaration
public readonly Color selectedRowColor
Field Value
Declaration
public readonly SliderThemeData sliderTheme
Field Value
Declaration
public readonly Color splashColor
Field Value
Declaration
public readonly InteractiveInkFeatureFactory splashFactory
Field Value
Declaration
public readonly TabBarTheme tabBarTheme
Field Value
textSelectionColor
Declaration
public readonly Color textSelectionColor
Field Value
textSelectionHandleColor
Declaration
public readonly Color textSelectionHandleColor
Field Value
textTheme
Declaration
public readonly TextTheme textTheme
Field Value
Declaration
public readonly Color toggleableActiveColor
Field Value
Declaration
public readonly Typography typography
Field Value
Declaration
public readonly Color unselectedWidgetColor
Field Value
Methods
copyWith(Nullable<Brightness>, Color, Nullable<Brightness>, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, TextTheme, TextTheme, TextTheme, SliderThemeData, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)
Declaration
public ThemeData copyWith(Brightness? brightness = default(Brightness? ), Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color canvasColor = null, Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, ButtonThemeData buttonTheme = null, Color buttonColor = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, SliderThemeData sliderTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
Parameters
Returns
Declaration
public static ThemeData dark()
Returns
Declaration
public override void debugFillProperties(DiagnosticPropertiesBuilder properties)
Parameters
Overrides
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(ThemeData other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Brightness estimateBrightnessForColor(Color color)
Parameters
Type |
Name |
Description |
Color |
color |
|
Returns
Declaration
public static ThemeData fallback()
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public static ThemeData lerp(ThemeData a, ThemeData b, float t)
Parameters
Returns
Declaration
public static ThemeData light()
Returns
localize(ThemeData, TextTheme)
Declaration
public static ThemeData localize(ThemeData baseTheme, TextTheme localTextGeometry)
Parameters
Returns
raw(Nullable<Brightness>, Color, Nullable<Brightness>, Color, Color, Color, Color, Nullable<Brightness>, Color, Color, Color, Color, Color, Color, InteractiveInkFeatureFactory, Color, Color, Color, ButtonThemeData, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, Color, TextTheme, TextTheme, TextTheme, SliderThemeData, InputDecorationTheme, IconThemeData, IconThemeData, IconThemeData, TabBarTheme, CardTheme, ChipThemeData, Nullable<RuntimePlatform>, Nullable<MaterialTapTargetSize>, PageTransitionsTheme, AppBarTheme, BottomAppBarTheme, ColorScheme, DialogTheme, Typography)
Declaration
public static ThemeData raw(Brightness? brightness = default(Brightness? ), Color primaryColor = null, Brightness? primaryColorBrightness = default(Brightness? ), Color primaryColorLight = null, Color primaryColorDark = null, Color canvasColor = null, Color accentColor = null, Brightness? accentColorBrightness = default(Brightness? ), Color scaffoldBackgroundColor = null, Color bottomAppBarColor = null, Color cardColor = null, Color dividerColor = null, Color highlightColor = null, Color splashColor = null, InteractiveInkFeatureFactory splashFactory = null, Color selectedRowColor = null, Color unselectedWidgetColor = null, Color disabledColor = null, ButtonThemeData buttonTheme = null, Color buttonColor = null, Color secondaryHeaderColor = null, Color textSelectionColor = null, Color cursorColor = null, Color textSelectionHandleColor = null, Color backgroundColor = null, Color dialogBackgroundColor = null, Color indicatorColor = null, Color hintColor = null, Color errorColor = null, Color toggleableActiveColor = null, TextTheme textTheme = null, TextTheme primaryTextTheme = null, TextTheme accentTextTheme = null, SliderThemeData sliderTheme = null, InputDecorationTheme inputDecorationTheme = null, IconThemeData iconTheme = null, IconThemeData primaryIconTheme = null, IconThemeData accentIconTheme = null, TabBarTheme tabBarTheme = null, CardTheme cardTheme = null, ChipThemeData chipTheme = null, RuntimePlatform? platform = default(RuntimePlatform? ), MaterialTapTargetSize? materialTapTargetSize = default(MaterialTapTargetSize? ), PageTransitionsTheme pageTransitionsTheme = null, AppBarTheme appBarTheme = null, BottomAppBarTheme bottomAppBarTheme = null, ColorScheme colorScheme = null, DialogTheme dialogTheme = null, Typography typography = null)
Parameters
Returns
Operators
Declaration
public static bool operator ==(ThemeData left, ThemeData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(ThemeData left, ThemeData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|