From b4b100c135a80d171330fc6117e134d570f8ef60 Mon Sep 17 00:00:00 2001 From: c-o-d-e-y-o-d-a Date: Tue, 1 Apr 2025 20:01:01 +0530 Subject: [PATCH] fix: Group Buttons UI fixed --- lib/presentation/home/home_screen.dart | 6 +++--- lib/presentation/widgets/hike_button.dart | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/presentation/home/home_screen.dart b/lib/presentation/home/home_screen.dart index 300b54b..9c2d875 100644 --- a/lib/presentation/home/home_screen.dart +++ b/lib/presentation/home/home_screen.dart @@ -200,8 +200,8 @@ class _HomeScreenState extends State { Container( width: 45.w, child: HikeButton( - buttonWidth: homebwidth - 10, - buttonHeight: homebheight - 2, + buttonWidth: homebwidth , + buttonHeight: homebheight - homebheight / 3, text: 'Create Group', textColor: Colors.white, borderColor: Colors.white, @@ -219,7 +219,7 @@ class _HomeScreenState extends State { width: 45.w, child: HikeButton( buttonWidth: homebwidth, - buttonHeight: homebheight - 2, + buttonHeight: homebheight - homebheight / 3, text: 'Join a Group', textColor: kYellow, borderColor: kYellow, diff --git a/lib/presentation/widgets/hike_button.dart b/lib/presentation/widgets/hike_button.dart index e22a2f3..1a1636a 100644 --- a/lib/presentation/widgets/hike_button.dart +++ b/lib/presentation/widgets/hike_button.dart @@ -38,6 +38,7 @@ class HikeButton extends StatelessWidget { Text( text!, style: TextStyle(color: textColor, fontSize: textSize), + ), ), onPressed: onTap as void Function()?,