border property
Implementation
static final Map<CTextfieldKind, Map<CWidgetState, InputBorder>> border = {
CTextfieldKind.primary: {
CWidgetState.enabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.gray60, width: 1),
),
CWidgetState.focused: OutlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.white0, width: 2),
),
CWidgetState.disabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide.none,
),
},
CTextfieldKind.success: {
CWidgetState.enabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.gray60, width: 1),
),
CWidgetState.focused: OutlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.green40, width: 2),
),
CWidgetState.disabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide.none,
),
},
CTextfieldKind.warning: {
CWidgetState.enabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.gray60, width: 1),
),
CWidgetState.focused: OutlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.yellow20, width: 2),
),
CWidgetState.disabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide.none,
),
},
CTextfieldKind.error: {
CWidgetState.enabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.gray60, width: 1),
),
CWidgetState.focused: OutlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide(color: CColors.red50, width: 2),
),
CWidgetState.disabled: UnderlineInputBorder(
borderRadius: BorderRadius.circular(0),
borderSide: BorderSide.none,
),
},
};