Fixed size on web and changed details design button in desktop and tablet
This commit is contained in:
@@ -14,6 +14,7 @@ class BaseButton extends StatelessWidget {
|
||||
final double? borderWidth;
|
||||
final double? borderRadius;
|
||||
final double? elevation;
|
||||
final double? width;
|
||||
|
||||
const BaseButton({
|
||||
required this.isEnabled,
|
||||
@@ -25,13 +26,14 @@ class BaseButton extends StatelessWidget {
|
||||
this.borderWidth,
|
||||
this.borderRadius,
|
||||
this.elevation,
|
||||
this.width,
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
width: double.infinity,
|
||||
width: width ?? double.infinity,
|
||||
height: 55.0.h(),
|
||||
child: ElevatedButton(
|
||||
onPressed: isEnabled ? onPressed : null,
|
||||
|
||||
Reference in New Issue
Block a user