[DEV] Added axis allignments to radio selectors
This commit is contained in:
@@ -4,29 +4,32 @@ class AstromicRadioSelectorConfiguration {
|
|||||||
final Axis axis;
|
final Axis axis;
|
||||||
final bool isNullable;
|
final bool isNullable;
|
||||||
final bool withExpandedSpace;
|
final bool withExpandedSpace;
|
||||||
|
//
|
||||||
|
final MainAxisAlignment? mainAxisAlignment;
|
||||||
|
final CrossAxisAlignment? crossAxisAlignment;
|
||||||
const AstromicRadioSelectorConfiguration({
|
const AstromicRadioSelectorConfiguration({
|
||||||
this.axis = Axis.horizontal,
|
this.axis = Axis.horizontal,
|
||||||
this.isNullable = true,
|
this.isNullable = true,
|
||||||
this.withExpandedSpace = false,
|
this.withExpandedSpace = false,
|
||||||
|
//
|
||||||
|
this.mainAxisAlignment,
|
||||||
|
this.crossAxisAlignment,
|
||||||
});
|
});
|
||||||
|
|
||||||
AstromicRadioSelectorConfiguration copyWith({
|
AstromicRadioSelectorConfiguration copyWith({
|
||||||
Axis? axis,
|
Axis? axis,
|
||||||
bool? isNullable,
|
bool? isNullable,
|
||||||
bool? isWrap,
|
|
||||||
WrapAlignment? wrapMainAllignment,
|
|
||||||
WrapCrossAlignment? wrapCrossAllignment,
|
|
||||||
bool? isConsequent,
|
|
||||||
bool? withClearButton,
|
|
||||||
int? maxSelectedItems,
|
|
||||||
int? crossAxisCount,
|
|
||||||
bool? withExpandedSpace,
|
bool? withExpandedSpace,
|
||||||
double? fixedRowHeight,
|
//
|
||||||
|
MainAxisAlignment? mainAxisAlignment,
|
||||||
|
CrossAxisAlignment? crossAxisAlignment,
|
||||||
}) {
|
}) {
|
||||||
return AstromicRadioSelectorConfiguration(
|
return AstromicRadioSelectorConfiguration(
|
||||||
axis: axis ?? this.axis,
|
axis: axis ?? this.axis,
|
||||||
isNullable: isNullable ?? this.isNullable,
|
isNullable: isNullable ?? this.isNullable,
|
||||||
withExpandedSpace: withExpandedSpace ?? this.withExpandedSpace,
|
withExpandedSpace: withExpandedSpace ?? this.withExpandedSpace,
|
||||||
|
mainAxisAlignment: mainAxisAlignment ?? this.mainAxisAlignment,
|
||||||
|
crossAxisAlignment: crossAxisAlignment ?? this.crossAxisAlignment,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user