ui/card_fields library
Classes
- CardLeadingAvatar
- The leading avatar image/icon a card or row shows when CardLayout.leading is set — the same size/shape logic for both, extracted so a wide list's row and its narrow-screen card never drift apart.
Functions
-
cardBadgeWidget(
CardBadge badge, ResourceRecord record, BuildContext context) → Widget? - One badge slot's widget, or null when the field has no renderable value.
-
cardFieldText(
ResourceRecord record, BuildContext context, String? field, {bool formatDates = false, bool isolate = true}) → String? - The field-reading/formatting logic shared by ResourceCard and ResourceRow — extracted rather than duplicated once a second widget needed the exact same title/subtitle/badge/meta rendering rules (P23 Task 2).