From cd593496516db793a906b2603a5316512ab9c472 Mon Sep 17 00:00:00 2001 From: "Michael W. Aziz" Date: Thu, 16 May 2024 18:58:22 +0300 Subject: [PATCH] [DEV] Added axis allignments to radio selectors --- .../Selectors/src/Radio/configuration.dart | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/src/Selectors/src/Radio/configuration.dart b/lib/src/Selectors/src/Radio/configuration.dart index a5c52cc..a89474c 100644 --- a/lib/src/Selectors/src/Radio/configuration.dart +++ b/lib/src/Selectors/src/Radio/configuration.dart @@ -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, ); } }