|
|
|
@ -54,12 +54,12 @@ class _AppButtonState extends State<AppButton> {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
if (widget.fontSize == null) {
|
|
|
|
if (widget.fontSize == null) {
|
|
|
|
widget.fontSize = SizeConfig.getHeightMultiplier() *
|
|
|
|
widget.fontSize = SizeConfig.getHeightMultiplier() *
|
|
|
|
(SizeConfig.isHeightVeryShort ? 1.3 : 1.7);
|
|
|
|
(SizeConfig.isHeightVeryShort ? 2.1 :SizeConfig.isHeightShort?1.8: 1.7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return Container(
|
|
|
|
return Container(
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.075,
|
|
|
|
// height: MediaQuery.of(context).size.height * 0.075,
|
|
|
|
height: widget.height?? SizeConfig.heightMultiplier *
|
|
|
|
height: widget.height?? SizeConfig.heightMultiplier *
|
|
|
|
(SizeConfig.isHeightVeryShort ? 6 : 5),
|
|
|
|
(SizeConfig.isHeightVeryShort ? 6 :SizeConfig.isHeightShort?5.5: 5),
|
|
|
|
child: IgnorePointer(
|
|
|
|
child: IgnorePointer(
|
|
|
|
ignoring: widget.loading || widget.disabled,
|
|
|
|
ignoring: widget.loading || widget.disabled,
|
|
|
|
child: RawMaterialButton(
|
|
|
|
child: RawMaterialButton(
|
|
|
|
|