responsive community header

This commit is contained in:
hannathkadher
2024-11-26 13:29:48 +04:00
parent a82505ea6a
commit 5091aa1e49
2 changed files with 94 additions and 48 deletions

View File

@ -70,14 +70,14 @@ class DefaultButton extends StatelessWidget {
borderRadius: BorderRadius.circular(borderRadius ?? 20),
),
),
fixedSize: WidgetStateProperty.all(
const Size.fromHeight(50),
),
fixedSize: height != null
? WidgetStateProperty.all(Size.fromHeight(height!))
: null,
padding: WidgetStateProperty.all(
EdgeInsets.all(padding ?? 10),
),
minimumSize: WidgetStateProperty.all(
const Size.fromHeight(50),
const Size.fromHeight(10),
),
elevation: WidgetStateProperty.all(elevation ?? 0),
),