|
|
|
@ -28,7 +28,13 @@ class AppFilledButton extends StatelessWidget {
|
|
|
|
width: maxWidth ? double.infinity : null,
|
|
|
|
width: maxWidth ? double.infinity : null,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(10), color: buttonColor ?? AppColor.blueStatus(context)),
|
|
|
|
decoration: BoxDecoration(borderRadius: BorderRadius.circular(10), color: buttonColor ?? AppColor.blueStatus(context)),
|
|
|
|
child: label.heading6(context).custom(color: textColor ?? AppColor.background(context)),
|
|
|
|
child: loading
|
|
|
|
|
|
|
|
? SizedBox(
|
|
|
|
|
|
|
|
width: 40,
|
|
|
|
|
|
|
|
height: 40,
|
|
|
|
|
|
|
|
child: CircularProgressIndicator(color: textColor ?? AppColor.background(context)),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
: label.heading6(context).custom(color: textColor ?? AppColor.background(context)),
|
|
|
|
).onPress(onPressed);
|
|
|
|
).onPress(onPressed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|