jxFlexRules top-level property
Flex : wrap/nowrap (standalone), flw:, fl:, grow:, shrink:, as:.
Implementation
final List<JxRuleContract> jxFlexRules = [
JxStaticRule('flex-wrap-standalone', {
for (final entry in _wrapValues.entries)
entry.key: {'flex-wrap': entry.value},
}),
const JxValueRule(
'flex-wrap',
properties: {
'flw': ['flex-wrap'],
},
keywords: {'wrap': 'wrap', 'nowrap': 'nowrap', 'reverse': 'wrap-reverse'},
allowArbitrary: false,
),
const JxValueRule(
'flex',
properties: {
'fl': ['flex'],
},
keywords: {
'1': '1 1 0%',
'auto': '1 1 auto',
'initial': '0 1 auto',
'none': 'none',
},
),
const JxValueRule(
'flex-grow-shrink',
properties: {
'grow': ['flex-grow'],
'shrink': ['flex-shrink'],
},
keywords: {'0': '0', '1': '1'},
),
const JxValueRule(
'align-self',
properties: {
'as': ['align-self'],
},
keywords: {
'auto': 'auto',
'start': 'flex-start',
'end': 'flex-end',
'center': 'center',
'stretch': 'stretch',
'baseline': 'baseline',
},
allowArbitrary: false,
),
];