jxAlignmentRules top-level constant
Alignement : ac:, ji:, js:, pi:, pc:, order:, basis:.
Implementation
const List<JxRuleContract> jxAlignmentRules = [
JxValueRule(
'align-content',
properties: {
'ac': ['align-content'],
},
keywords: _alignContent,
allowArbitrary: false,
),
JxValueRule(
'place-content',
properties: {
'pc': ['place-content'],
},
keywords: _alignContent,
allowArbitrary: false,
),
JxValueRule(
'justify-items',
properties: {
'ji': ['justify-items'],
'pi': ['place-items'],
},
keywords: _alignItems,
allowArbitrary: false,
),
JxValueRule(
'justify-self',
properties: {
'js': ['justify-self'],
},
keywords: {..._alignItems, 'auto': 'auto'},
allowArbitrary: false,
),
JxValueRule(
'order',
properties: {
'order': ['order'],
},
keywords: {'first': '-9999', 'last': '9999', 'none': '0'},
allowNegative: true,
fallback: _int,
),
JxValueRule(
'flex-basis',
properties: {
'basis': ['flex-basis'],
},
themeCategory: JxThemeCategory.spacing,
keywords: {
'auto': 'auto',
'full': '100%',
'1/2': '50%',
'1/3': '33.333333%',
'2/3': '66.666667%',
'1/4': '25%',
'3/4': '75%',
},
),
];