Integer Column
FdcIntegerColumn is the standard choice for whole-number values. It supports normal integer editing, optional sign policy, display-only prefixes/suffixes, and the same lookup integration available on text columns.
Integer column sample
Loading FDC sample…
FdcGrid(
dataSet: stockRows,
options: const FdcGridOptions(autoEdit: true),
columns: [
FdcIntegerColumn(
fieldName: 'warehouse_id',
width: 120,
lookupIcon: Icons.manage_search,
onLookup: openWarehouseLookup,
),
const FdcIntegerColumn(
fieldName: 'units_in_stock',
width: 120,
allowNegative: false,
suffixText: ' pcs',
),
const FdcIntegerColumn(
fieldName: 'lead_days',
width: 110,
suffixText: ' days',
),
],
);
Key characteristics
- Binds to
FdcIntegerField. - Supports
allowNegativewhen the field should reject negative input. - Supports display-only
prefixTextandsuffixText. - Supports
onLookup, making it suitable for numeric code or ID resolution scenarios.
Display formatting
const FdcIntegerColumn<dynamic>(
fieldName: 'lead_days',
label: 'Lead time',
suffixText: ' days',
)
Affixes are presentation-only metadata. They do not change parsing, sorting, filtering, storage, or aggregates.
Lookup scenarios
Integer lookup is useful for values such as warehouse IDs, account numbers, or reference codes. The sample above shows a simple lookup action you can trigger immediately.