[DEV] Done with the buttons
This commit is contained in:
@@ -58,7 +58,7 @@ class AstromicStateButton extends StatefulWidget {
|
|||||||
//s1 -- Content
|
//s1 -- Content
|
||||||
this.loadingContent,
|
this.loadingContent,
|
||||||
required this.content,
|
required this.content,
|
||||||
});
|
}) : assert(heightSizingStrategy != SizingStrategy.fill, 'Height strategy cannot be fill');
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<AstromicStateButton> createState() => _AstromicStateButtonState();
|
State<AstromicStateButton> createState() => _AstromicStateButtonState();
|
||||||
@@ -160,15 +160,22 @@ class _AstromicStateButtonState extends State<AstromicStateButton> {
|
|||||||
//!SECTION
|
//!SECTION
|
||||||
|
|
||||||
//SECTION - Build Return
|
//SECTION - Build Return
|
||||||
return SizedBox(
|
return Row(
|
||||||
width: widget.widthSizingStrategy == SizingStrategy.fixed && widget.style != null ? widget.style!(widget.isEnabled, isHighlighted, isLoading).fixedWidth : null,
|
mainAxisSize: widget.widthSizingStrategy == SizingStrategy.hug ? MainAxisSize.min : MainAxisSize.max,
|
||||||
height: widget.heightSizingStrategy == SizingStrategy.fixed && widget.style != null ? widget.style!(widget.isEnabled, isHighlighted, isLoading).fixedHeight : null,
|
children: [
|
||||||
child: Row(
|
widget.widthSizingStrategy == SizingStrategy.fill
|
||||||
mainAxisSize: widget.widthSizingStrategy == SizingStrategy.hug ? MainAxisSize.min : MainAxisSize.max,
|
? Expanded(
|
||||||
children: [
|
child: SizedBox(
|
||||||
baseChild,
|
height: widget.heightSizingStrategy == SizingStrategy.fixed && widget.style != null ? widget.style!(widget.isEnabled, isHighlighted, isLoading).fixedHeight : null,
|
||||||
],
|
child: baseChild,
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
: SizedBox(
|
||||||
|
width: widget.widthSizingStrategy == SizingStrategy.fixed && widget.style != null ? widget.style!(widget.isEnabled, isHighlighted, isLoading).fixedWidth : null,
|
||||||
|
height: widget.heightSizingStrategy == SizingStrategy.fixed && widget.style != null ? widget.style!(widget.isEnabled, isHighlighted, isLoading).fixedHeight : null,
|
||||||
|
child: baseChild,
|
||||||
|
),
|
||||||
|
],
|
||||||
);
|
);
|
||||||
//!SECTION
|
//!SECTION
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user