[DEV] Added axis allignments to radio selectors
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user