LegChipImage class

Thẻ chip chữ của chú thích chặng: viên thuốc heightPx, rộng max(minWidthPx, chữ + 2·paddingXPx). Ảnh có lề trong suốt towardIconPx về phía icon (dưới chip khi side top, trên khi bottom) và sideClearPx bên phải (đoạn neo dọc — chip dạt trái): neo ảnh (bottom / top / bottom-right / top-right) đặt đúng tâm icon, không cần icon-offset theo feature. borderColor null = không viền.

Inheritance

Constructors

LegChipImage({required String text, required double fontSizePx, required int fontWeight, required String textColor, required String bg, required String? borderColor, required double borderWidthPx, required double radiusPx, required double heightPx, required double paddingXPx, required double minWidthPx, required String side, required double towardIconPx, required double sideClearPx})
const

Properties

bg → String
final
borderColor → String?
final
borderWidthPx → double
final
fontSizePx → double
final
fontWeight → int
final
hashCode → int
The hash code for this object.
no setterinherited
heightPx → double
final
minWidthPx → double
final
paddingXPx → double
final
radiusPx → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
side → String
top · bottom — chip nằm phía nào của icon.
final
sideClearPx → double
final
text → String
final
textColor → String
final
towardIconPx → double
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Cùng hình với LegChipSpec của bản web — khoá ảnh băm theo nó.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited