Image
Host images for KYC photos, bank logos and promotion media.


The dark specimen preserves a known gallery fixture bug: the synthetic logo’s white letters have little contrast against its light tile. See issue #173.
PaymentImage(image: provider, alt: 'Bank Contoh');Variants
Section titled “Variants”Variants: loading, loaded, failed.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Synthetic document preview | loaded | Pass a host ImageProvider and alt; empty alt means decorative. |
Use Icon for a symbolic status mark.
States
Section titled “States”The image fades in over its placeholder; instant under reduced motion.
The image preserves its loading surface and handles decode failure. It fades in when loaded, with no fade under reduced motion.
Do and don’t
Section titled “Do and don’t”Do: Pass a host ImageProvider and alt; empty alt means decorative.
Don’t: Construct a network image in the kit.
Content guidelines
Section titled “Content guidelines”Supply alt text that explains the image’s purpose. Use an empty alt for decorative images.
Accessibility
Section titled “Accessibility”Meaningful images need alt text. Decorative images use an empty alt so they do not interrupt reading order.
PaymentImage
class PaymentImage extends StatelessWidget · lib/src/layout/content.dart
A host-supplied image with alt text, loading and error states.
| Parameter | Type | Default | Description |
|---|---|---|---|
image:required | ImageProvider | — | The host supplies the image provider. |
alt:required | String | — | Image alternative; empty makes the image decorative. |
width: | double? | — | Optional width. |
height: | double? | — | Optional height. |
fit: | BoxFit | BoxFit.cover | Image fit. |
radius: | PaymentRadius | PaymentRadius.none | Corner role. |
bordered: | bool | false | Draw an outline over the image. |
placeholder: | Widget? | — | Host loading content. |
errorFallback: | Widget? | — | Host failure content, including its own semantics. |
PaymentRadius
enum PaymentRadius · lib/src/foundation/payment_tokens.dart
Corner roles for PaymentBox and PaymentImage.
| Value | Description |
|---|---|
none | BorderRadius.zero. |
tag | tagBorderRadius (4 by default). |
control | controlBorderRadius (6 by default). |
box | borderRadius (8 by default). |
sheet | sheetBorderRadius (12 by default). |
circle | BorderRadius.circular(999), existing navigation pill. |