Skip to content

Commit

Permalink
Merge pull request #251 from 12fahed/main
Browse files Browse the repository at this point in the history
All bugs Resolved
  • Loading branch information
12fahed authored Aug 2, 2024
2 parents 00ed435 + a54bbc6 commit d90a14d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 24 deletions.
63 changes: 40 additions & 23 deletions lib/new_ui/screens/event_details_screen/event_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,29 +89,46 @@ class _EventDetailState extends ConsumerState<EventDetail> {
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),
),
),
),
],
),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/profile_details.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ List<String> 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");
}
Expand Down

0 comments on commit d90a14d

Please sign in to comment.