[FIX] Removed axis from chip selector

This commit is contained in:
2024-05-16 19:30:22 +03:00
parent cfd681a3d6
commit 94a1baaf70
2 changed files with 0 additions and 6 deletions

View File

@@ -213,7 +213,6 @@ class _AstromicChipSelectorState<T> extends State<AstromicChipSelector<T>> {
? widget.groupBuilder!(baseChildren)
: (widget.configuration?.isWrap ?? true)
? Wrap(
direction: widget.configuration?.axis ?? Axis.horizontal,
spacing: widget.itemSpacing!,
runSpacing: widget.runSpacing!,
//

View File

@@ -1,7 +1,6 @@
import 'package:flutter/widgets.dart';
class AstromicChipSelectorConfiguration {
final Axis axis;
final bool isNullable;
final bool isWrap;
final WrapAlignment wrapMainAllignment;
@@ -12,7 +11,6 @@ class AstromicChipSelectorConfiguration {
final int crossAxisCount;
final double? fixedRowHeight;
const AstromicChipSelectorConfiguration({
this.axis = Axis.horizontal,
this.isNullable = true,
//
this.isWrap = true,
@@ -26,7 +24,6 @@ class AstromicChipSelectorConfiguration {
});
AstromicChipSelectorConfiguration copyWith({
Axis? axis,
bool? isNullable,
bool? isWrap,
WrapAlignment? wrapMainAllignment,
@@ -35,11 +32,9 @@ class AstromicChipSelectorConfiguration {
bool? withClearButton,
int? maxSelectedItems,
int? crossAxisCount,
bool? withExpandedSpace,
double? fixedRowHeight,
}) {
return AstromicChipSelectorConfiguration(
axis: axis ?? this.axis,
isNullable: isNullable ?? this.isNullable,
isWrap: isWrap ?? this.isWrap,
wrapMainAllignment: wrapMainAllignment ?? this.wrapMainAllignment,