[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.groupBuilder!(baseChildren)
|
||||||
: (widget.configuration?.isWrap ?? true)
|
: (widget.configuration?.isWrap ?? true)
|
||||||
? Wrap(
|
? Wrap(
|
||||||
direction: widget.configuration?.axis ?? Axis.horizontal,
|
|
||||||
spacing: widget.itemSpacing!,
|
spacing: widget.itemSpacing!,
|
||||||
runSpacing: widget.runSpacing!,
|
runSpacing: widget.runSpacing!,
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/widgets.dart';
|
import 'package:flutter/widgets.dart';
|
||||||
|
|
||||||
class AstromicChipSelectorConfiguration {
|
class AstromicChipSelectorConfiguration {
|
||||||
final Axis axis;
|
|
||||||
final bool isNullable;
|
final bool isNullable;
|
||||||
final bool isWrap;
|
final bool isWrap;
|
||||||
final WrapAlignment wrapMainAllignment;
|
final WrapAlignment wrapMainAllignment;
|
||||||
@@ -12,7 +11,6 @@ class AstromicChipSelectorConfiguration {
|
|||||||
final int crossAxisCount;
|
final int crossAxisCount;
|
||||||
final double? fixedRowHeight;
|
final double? fixedRowHeight;
|
||||||
const AstromicChipSelectorConfiguration({
|
const AstromicChipSelectorConfiguration({
|
||||||
this.axis = Axis.horizontal,
|
|
||||||
this.isNullable = true,
|
this.isNullable = true,
|
||||||
//
|
//
|
||||||
this.isWrap = true,
|
this.isWrap = true,
|
||||||
@@ -26,7 +24,6 @@ class AstromicChipSelectorConfiguration {
|
|||||||
});
|
});
|
||||||
|
|
||||||
AstromicChipSelectorConfiguration copyWith({
|
AstromicChipSelectorConfiguration copyWith({
|
||||||
Axis? axis,
|
|
||||||
bool? isNullable,
|
bool? isNullable,
|
||||||
bool? isWrap,
|
bool? isWrap,
|
||||||
WrapAlignment? wrapMainAllignment,
|
WrapAlignment? wrapMainAllignment,
|
||||||
@@ -35,11 +32,9 @@ class AstromicChipSelectorConfiguration {
|
|||||||
bool? withClearButton,
|
bool? withClearButton,
|
||||||
int? maxSelectedItems,
|
int? maxSelectedItems,
|
||||||
int? crossAxisCount,
|
int? crossAxisCount,
|
||||||
bool? withExpandedSpace,
|
|
||||||
double? fixedRowHeight,
|
double? fixedRowHeight,
|
||||||
}) {
|
}) {
|
||||||
return AstromicChipSelectorConfiguration(
|
return AstromicChipSelectorConfiguration(
|
||||||
axis: axis ?? this.axis,
|
|
||||||
isNullable: isNullable ?? this.isNullable,
|
isNullable: isNullable ?? this.isNullable,
|
||||||
isWrap: isWrap ?? this.isWrap,
|
isWrap: isWrap ?? this.isWrap,
|
||||||
wrapMainAllignment: wrapMainAllignment ?? this.wrapMainAllignment,
|
wrapMainAllignment: wrapMainAllignment ?? this.wrapMainAllignment,
|
||||||
|
|||||||
Reference in New Issue
Block a user