[FIX] Null value on the bools
This commit is contained in:
@@ -68,11 +68,11 @@ class AstromicButtons {
|
||||
onTap: onTap,
|
||||
onHold: onHold,
|
||||
//
|
||||
isEnabled: isEnabled,
|
||||
withFeedback: withFeedback,
|
||||
withHighlightChange: withHighlightChange,
|
||||
isEnabled: isEnabled ?? true,
|
||||
withFeedback: withFeedback ?? true,
|
||||
withHighlightChange: withHighlightChange ?? true,
|
||||
//
|
||||
isCircular: isCircular,
|
||||
isCircular: isCircular ?? true,
|
||||
splashFactory: splashFactory,
|
||||
style: style,
|
||||
//
|
||||
|
||||
@@ -25,12 +25,12 @@ class AstromicIconButton extends StatefulWidget {
|
||||
final void Function(VoidCallback start, VoidCallback stop)? onTap;
|
||||
final Function(VoidCallback start, VoidCallback stop)? onHold;
|
||||
//s1 -- Configurations
|
||||
final bool? isEnabled;
|
||||
final bool? withFeedback;
|
||||
final bool? withHighlightChange;
|
||||
final bool isEnabled;
|
||||
final bool withFeedback;
|
||||
final bool withHighlightChange;
|
||||
//s1 -- Style
|
||||
final InteractiveInkFeatureFactory? splashFactory;
|
||||
final bool? isCircular;
|
||||
final bool isCircular;
|
||||
final AstromicButtonStyle Function(bool isEnabled, bool isHighlighted, bool isLoading)? style;
|
||||
//s1 -- Content
|
||||
final Widget? loadingContent;
|
||||
@@ -43,12 +43,12 @@ class AstromicIconButton extends StatefulWidget {
|
||||
this.onTap,
|
||||
this.onHold,
|
||||
//
|
||||
this.isEnabled = true,
|
||||
this.withFeedback = true,
|
||||
this.withHighlightChange = true,
|
||||
required this.isEnabled,
|
||||
required this.withFeedback,
|
||||
required this.withHighlightChange,
|
||||
//s1 -- Style
|
||||
this.splashFactory,
|
||||
this.isCircular = true,
|
||||
required this.isCircular,
|
||||
this.style,
|
||||
//s1 -- Content
|
||||
this.loadingContent,
|
||||
@@ -101,7 +101,7 @@ class _AstromicIconButtonState extends State<AstromicIconButton> {
|
||||
//s1 -Widgets
|
||||
//-----
|
||||
Widget baseChild = AstromicButtonBase(
|
||||
isEnabled: widget.isEnabled!,
|
||||
isEnabled: widget.isEnabled,
|
||||
withFeedback: widget.withFeedback!,
|
||||
withHighlightChange: widget.withHighlightChange!,
|
||||
isFullWidth: false,
|
||||
|
||||
Reference in New Issue
Block a user