IddsColors class

Semua warna IDDS untuk satu brand dan satu mode (terang/gelap).

Dapatkan lewat IddsTheme.of(context).colors.

Annotations

Constructors

IddsColors({required IddsColorScale primary, required Color primaryMain, required Color onPrimary, required IddsColorScale secondary, required Color backgroundPrimary, required Color backgroundSecondary, required Color backgroundTertiary, required Color backgroundOverlay, required Color contentPrimary, required Color contentSecondary, required Color contentTertiary, required Color contentGuide, required Color contentNegative, required Color contentPositive, required Color strokePrimary, required Color strokeSecondary, required Color strokeTertiary, required Color white, required Color black, required Color baseWhite, required Color baseBlack, required IddsPalette guide, required IddsPalette negative, required IddsPalette positive, required IddsPalette warning})
Membuat kumpulan warna secara manual. Biasanya cukup pakai IddsColors.resolve.
const
IddsColors.resolve(IddsBrand brand, Brightness brightness)
Menggabungkan warna brand dengan token semantik untuk brightness.
factory

Properties

backgroundOverlay → Color
Lapisan gelap di belakang modal dan drawer. (--ina-background-overlay)
final
backgroundPrimary → Color
Latar utama halaman dan komponen. (--ina-background-primary)
final
backgroundSecondary → Color
Latar sekunder, mis. area yang dibedakan atau hover ringan. (--ina-background-secondary)
final
backgroundTertiary → Color
Latar tersier, mis. komponen nonaktif atau hover kuat. (--ina-background-tertiary)
final
baseBlack → Color
Hitam tetap di semua mode. (--ina-base-black)
final
baseWhite → Color
Putih tetap di semua mode, mis. teks di atas warna brand. (--ina-base-white)
final
black → Color
Hitam yang mengikuti mode (terang di dark mode). (--ina-black)
final
contentGuide → Color
Tautan dan konten informatif. (--ina-content-guide)
final
contentNegative → Color
Pesan error dan aksi destruktif. (--ina-content-negative)
final
contentPositive → Color
Pesan sukses dan konfirmasi. (--ina-content-positive)
final
contentPrimary → Color
Teks dan ikon utama. (--ina-content-primary)
final
contentSecondary → Color
Teks dan ikon sekunder. (--ina-content-secondary)
final
contentTertiary → Color
Teks dan ikon tersier, placeholder, dan konten nonaktif. (--ina-content-tertiary)
final
guide → IddsPalette
Skala warna panduan/informasi (biru). (--ina-guide-*)
final
hashCode → int
The hash code for this object.
no setteroverride
negative → IddsPalette
Skala warna negatif/error (merah). (--ina-negative-*)
final
onPrimary → Color
Warna teks/ikon di atas primaryMain.
final
positive → IddsPalette
Skala warna positif/sukses (hijau). (--ina-positive-*)
final
primary → IddsColorScale
Skala warna utama brand (25–900).
final
primaryMain → Color
Warna utama brand untuk mode aktif (--ina-primary-primary).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondary → IddsColorScale
Skala warna sekunder brand (25–900).
final
strokePrimary → Color
Garis tepi dan pembatas utama. (--ina-stroke-primary)
final
strokeSecondary → Color
Garis tepi dengan kontras sedang, mis. input. (--ina-stroke-secondary)
final
strokeTertiary → Color
Garis tepi kontras tinggi, mis. cincin fokus. (--ina-stroke-tertiary)
final
warning → IddsPalette
Skala warna peringatan (kuning). (--ina-warning-*)
final
white → Color
Putih yang mengikuti mode (gelap di dark mode). (--ina-white)
final

Methods

copyWith({IddsColorScale? primary, Color? primaryMain, Color? onPrimary, IddsColorScale? secondary, Color? backgroundPrimary, Color? backgroundSecondary, Color? backgroundTertiary, Color? backgroundOverlay, Color? contentPrimary, Color? contentSecondary, Color? contentTertiary, Color? contentGuide, Color? contentNegative, Color? contentPositive, Color? strokePrimary, Color? strokeSecondary, Color? strokeTertiary, Color? white, Color? black, Color? baseWhite, Color? baseBlack, IddsPalette? guide, IddsPalette? negative, IddsPalette? positive, IddsPalette? warning}) → IddsColors
Salinan dengan sebagian nilai diganti.
lerp(IddsColors other, double t) → IddsColors
Interpolasi linear antara dua kumpulan warna (untuk animasi tema).
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.
override