[DEV] Added axis allignments to radio selectors

This commit is contained in:
2024-05-16 18:58:22 +03:00
parent c3d60dba73
commit cd59349651

View File

@@ -4,29 +4,32 @@ class AstromicRadioSelectorConfiguration {
final Axis axis;
final bool isNullable;
final bool withExpandedSpace;
//
final MainAxisAlignment? mainAxisAlignment;
final CrossAxisAlignment? crossAxisAlignment;
const AstromicRadioSelectorConfiguration({
this.axis = Axis.horizontal,
this.isNullable = true,
this.withExpandedSpace = false,
//
this.mainAxisAlignment,
this.crossAxisAlignment,
});
AstromicRadioSelectorConfiguration copyWith({
Axis? axis,
bool? isNullable,
bool? isWrap,
WrapAlignment? wrapMainAllignment,
WrapCrossAlignment? wrapCrossAllignment,
bool? isConsequent,
bool? withClearButton,
int? maxSelectedItems,
int? crossAxisCount,
bool? withExpandedSpace,
double? fixedRowHeight,
//
MainAxisAlignment? mainAxisAlignment,
CrossAxisAlignment? crossAxisAlignment,
}) {
return AstromicRadioSelectorConfiguration(
axis: axis ?? this.axis,
isNullable: isNullable ?? this.isNullable,
withExpandedSpace: withExpandedSpace ?? this.withExpandedSpace,
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
);
}
}