From a54bbc6e0f7f0fd973e8e84b3cc216a4a1b7fb16 Mon Sep 17 00:00:00 2001 From: Fahed Khan <127182880+12fahed@users.noreply.github.com> Date: Fri, 2 Aug 2024 13:04:21 +0530 Subject: [PATCH] All bugs Resolved --- .../event_details_screen/event_details.dart | 63 ++++++++++++------- lib/utils/profile_details.dart | 2 +- 2 files changed, 41 insertions(+), 24 deletions(-) diff --git a/lib/new_ui/screens/event_details_screen/event_details.dart b/lib/new_ui/screens/event_details_screen/event_details.dart index f2ff47db..55505d5b 100644 --- a/lib/new_ui/screens/event_details_screen/event_details.dart +++ b/lib/new_ui/screens/event_details_screen/event_details.dart @@ -89,29 +89,46 @@ class _EventDetailState extends ConsumerState { Expanded( child: Container(), ), - (data == null || - (widget.eventModel.eventRegistrationUrl - .isEmpty || - widget.eventModel.eventRegistrationUrl == - "")) - ? const SizedBox() - : ElevatedButton( - onPressed: () { - launchUrl(); - }, - child: const Text( - "Register", - style: TextStyle(color: Colors.white, fontSize: 14), - ), - style: ElevatedButton.styleFrom( - backgroundColor: Colors.blue, - padding: const EdgeInsets.only( - top: 0, bottom: 0, right: 20, left: 20), - shape: RoundedRectangleBorder( - borderRadius: BorderRadius.circular(5), - ), - ), - ) + // (data == null || + // (widget.eventModel.eventRegistrationUrl + // .isEmpty || + // widget.eventModel.eventRegistrationUrl == + // "")) + // ? const SizedBox() + // : ElevatedButton( + // onPressed: () { + // launchUrl(); + // }, + // child: const Text( + // "Register", + // style: TextStyle(color: Colors.white, fontSize: 14), + // ), + // style: ElevatedButton.styleFrom( + // backgroundColor: Colors.blue, + // padding: const EdgeInsets.only( + // top: 0, bottom: 0, right: 20, left: 20), + // shape: RoundedRectangleBorder( + // borderRadius: BorderRadius.circular(5), + // ), + // ), + // ) + ElevatedButton( + onPressed: () { + launchUrl(); + }, + child: const Text( + "Register", + style: TextStyle(color: Colors.white, fontSize: 14), + ), + style: ElevatedButton.styleFrom( + backgroundColor: Colors.blue, + padding: const EdgeInsets.only( + top: 0, bottom: 0, right: 20, left: 20), + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.circular(5), + ), + ), + ), ], ), ), diff --git a/lib/utils/profile_details.dart b/lib/utils/profile_details.dart index 02cc94ee..43a64703 100644 --- a/lib/utils/profile_details.dart +++ b/lib/utils/profile_details.dart @@ -117,7 +117,7 @@ List calcBatchList(String? div, String? branch) { if (div == null) { return batches; } - if (branch == "Comps"){ + if (branch == "Comps" || branch == "Extc"){ for (int i = 1; i <= 4; i++) { batches.add("$div$i"); }