jxFlexboxRules top-level constant
Flexbox : ai:, jc:, fd:, gap:.
Implementation
const List<JxRuleContract> jxFlexboxRules = [
JxValueRule(
'align-items',
properties: {
'ai': ['align-items'],
},
keywords: {
'start': 'flex-start',
'end': 'flex-end',
'center': 'center',
'baseline': 'baseline',
'stretch': 'stretch',
},
allowArbitrary: false,
),
JxValueRule(
'justify-content',
properties: {
'jc': ['justify-content'],
},
keywords: {
'start': 'flex-start',
'end': 'flex-end',
'center': 'center',
'between': 'space-between',
'around': 'space-around',
'evenly': 'space-evenly',
'stretch': 'stretch',
},
allowArbitrary: false,
),
JxValueRule(
'flex-direction',
properties: {
'fd': ['flex-direction'],
},
keywords: {
'row': 'row',
'row-reverse': 'row-reverse',
'col': 'column',
'col-reverse': 'column-reverse',
'column': 'column',
'column-reverse': 'column-reverse',
},
allowArbitrary: false,
),
JxValueRule(
'gap',
properties: {
'gap': ['gap'],
},
themeCategory: JxThemeCategory.spacing,
disallowed: {'auto'},
),
];