[FIX] Removed axis from chip selector
This commit is contained in:
@@ -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!,
|
||||
//
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user