Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All bugs Resolved #251

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading