MonetThemeData class
- Implementers
- Available extensions
Constructors
- MonetThemeData({required double backgroundTone, required Brightness brightness, required Palette primary, required Palette secondary, required Palette tertiary, Algo algo = Algo.apca, ColorModel colorModel = ColorModel.kDefault, double contrast = 0.5, double scale = 1.0, MonetShapeTheme shapeTheme = const MonetShapeTheme(), Typography typography(ColorScheme)?, bool compactLineHeights = true, double lineHeightClearance = kLineHeightClearance})
- MonetThemeData.fromColor({required double backgroundTone, required Brightness brightness, required Color color, Algo algo = Algo.apca, ColorModel colorModel = ColorModel.kDefault, double contrast = 0.5, double scale = 1.0, MonetShapeTheme shapeTheme = const MonetShapeTheme(), Typography typography(ColorScheme)?, bool compactLineHeights = true, double lineHeightClearance = kLineHeightClearance})
-
factory
- MonetThemeData.fromColors({required Brightness brightness, required double backgroundTone, required Color primary, required Color secondary, required Color tertiary, double contrast = 0.5, double scale = 1.0, Algo algo = Algo.apca, ColorModel colorModel = ColorModel.kDefault, MonetShapeTheme shapeTheme = const MonetShapeTheme(), Typography typography(ColorScheme)?, bool compactLineHeights = true, double lineHeightClearance = kLineHeightClearance})
-
factory
- MonetThemeData.fromQuantizerResult({required Brightness brightness, required double backgroundTone, required QuantizerResult quantizerResult, Algo algo = Algo.apca, ColorModel colorModel = ColorModel.kDefault, double contrast = 0.5, double scale = 1.0, MonetShapeTheme shapeTheme = const MonetShapeTheme(), Typography typography(ColorScheme)?, bool compactLineHeights = true, double lineHeightClearance = kLineHeightClearance})
-
factory
Properties
- algo → Algo
-
final
- backgroundTone → double
-
final
- brightness → Brightness
-
final
- colorModel → ColorModel
-
final
- compactLineHeights → bool
-
Fit each text style's line height to the ink of its font, with
lineHeightForFontFamily. Defaults to true. False keeps the natural
line box of every font.
final
- contrast → double
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isAnimating → bool
-
no setter
- lineHeightClearance → double
-
The gap between adjacent lines with compactLineHeights, as a fraction
of the requested font size. See lineHeightForFontFamily.
final
- primary → Palette
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale → double
-
final
- secondary → Palette
-
final
- shapes → MonetShapes
-
latefinal
- shapeTheme → MonetShapeTheme
-
final
- target → MonetThemeData
-
Logical endpoint, including through nested explicit/live animations.
no setter
- tertiary → Palette
-
final
- typography → Typography Function(ColorScheme)?
-
final
- unknownBackground → AnyBackground
-
Available on MonetThemeData, provided by the MonetThemeAnyBackground extension
Nothing known behind this theme's UI; see AnyBackground.unknown. Shared per algo and contrast, so its answer cache is too.no setter
Methods
-
anyBackground(
List< int> argbs) → AnyBackground -
Available on MonetThemeData, provided by the MonetThemeAnyBackground extension
argbsbehind this theme's UI, judged by its algo and contrast. Real pixels only; see AnyBackground.new. -
copyWith(
{Palette? primary, Palette? secondary, Palette? tertiary, Algo? algo, ColorModel? colorModel, double? backgroundTone, Brightness? brightness, double? contrast, double? scale, MonetShapeTheme? shapeTheme, Typography typography(ColorScheme)?, bool? compactLineHeights, double? lineHeightClearance}) → MonetThemeData - Copies theme fields and palette values verbatim. Policy fields do not re-solve arbitrary Palette adapters; when changing background tone, contrast, algorithm, or model for a logical endpoint, also supply palettes constructed with those inputs. Motion frames intentionally rely on this.
-
createTextTheme(
Typography typography, TextScaler textScaler, double scale, double devicePixelRatio) → TextTheme -
createThemeData(
BuildContext context) → ThemeData -
dividerThemeData(
Palette colors) → DividerThemeData -
drawerThemeData(
Palette colors) → DrawerThemeData -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scrollbarThemeData(
Palette colors) → ScrollbarThemeData -
textButtonTheme(
Palette colors, [OutlinedBorder? shape]) → TextButtonThemeData -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
- debugThemeCacheSize → int
-
no setter
- splashFactory → InteractiveInkFeatureFactory
-
no setter
Static Methods
-
actionIconTheme(
) → ActionIconThemeData -
appBarTheme(
Palette colors, TextTheme textTheme, double scale) → AppBarTheme -
badgeThemeData(
BuildContext context, Palette colors, TextTheme textTheme) → BadgeThemeData -
bottomAppBarTheme(
Palette colors) → BottomAppBarThemeData -
bottomSheetThemeData(
Palette colors) → BottomSheetThemeData -
cardTheme(
Palette colors, [MonetShapes? shapes]) → CardThemeData -
checkboxThemeData(
Palette colors) → CheckboxThemeData -
chipThemeData(
Brightness brightness, Palette colors, TextTheme textTheme) → ChipThemeData -
createDialogTheme(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → DialogThemeData -
createMenuStyleForDropdown(
Palette colors, [MonetShapes? shapes]) → MenuStyle -
createMenuStyleForMenuBar(
Palette colors) → MenuStyle -
createTabBarTheme(
Palette colors, TextTheme textTheme) → TabBarThemeData -
dataTableThemeData(
TextTheme textTheme) → DataTableThemeData -
datePickerThemeData(
Brightness brightness, Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → DatePickerThemeData -
debugClearThemeCache(
) → void -
dropdownMenuThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → DropdownMenuThemeData -
elevatedButtonTheme(
{required Palette colors, required double scale, OutlinedBorder? shape}) → ElevatedButtonThemeData -
expansionTileThemeData(
Palette colors, [MonetShapes? shapes]) → ExpansionTileThemeData -
fabThemeData(
Palette colors, TextTheme textTheme) → FloatingActionButtonThemeData -
filledButtonTheme(
{required Palette colors, required double scale, OutlinedBorder? shape}) → FilledButtonThemeData -
iconButtonThemeData(
Palette colors) → IconButtonThemeData -
iconThemeData(
Palette colors, double scale) → IconThemeData -
inputDecorationTheme(
Palette colors, TextTheme textTheme, [MonetShapes? shapes, TextDirection textDirection = TextDirection.ltr]) → InputDecorationTheme -
listTileThemeData(
Palette colors, TextTheme textTheme) → ListTileThemeData -
outlinedButtonTheme(
{required Palette colors, required double scale, OutlinedBorder? shape}) → OutlinedButtonThemeData -
popupMenuThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → PopupMenuThemeData -
progressIndicatorThemeData(
Palette colors) → ProgressIndicatorThemeData -
radioThemeData(
Palette colors) → RadioThemeData -
searchBarThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → SearchBarThemeData -
searchViewThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → SearchViewThemeData -
segmentedButtonThemeData(
Palette colors) → SegmentedButtonThemeData -
sliderThemeData(
Palette colors, TextTheme textTheme) → SliderThemeData -
snackBarThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → SnackBarThemeData -
switchThemeData(
Palette colors) → SwitchThemeData -
textSelectionThemeData(
Palette colors) → TextSelectionThemeData -
timePickerThemeData(
Palette colors, TextTheme textTheme, [double scale = 1.0, MonetShapes? shapes]) → TimePickerThemeData -
toggleButtonsThemeData(
Palette colors, TextTheme textTheme) → ToggleButtonsThemeData -
tooltipThemeData(
Palette colors, TextTheme textTheme, [MonetShapes? shapes]) → TooltipThemeData
Constants
- maxPanelWidth → const double
- The maximum width of any content panel.
- modalElevation → const double
- themeCacheCapacity → const int
- touchSize → const double