fix the size of the button inside the app

merge-requests/949/head
Elham Rababh 4 years ago
parent 71ce8d22e3
commit 94b86ee4b9

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

Loading…
Cancel
Save