Skip to content
New issue

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

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

Already on GitHub? # to your account

Feat/open buildings from contact #150

Merged
merged 5 commits into from
Aug 9, 2024

Conversation

simon-the-shark
Copy link
Member

I've been fixing some issues that occured during filling the info in the backend and done the opening links as well (haven't seen your assignemnet @mikolaj-jalocha ) Upsik

  • done this map links opening
  • changed plac to pl. to be consistent with buildings
  • fixed tab bar transition direction in some cases
  • upgraded flutter version to 3.24.0

@simon-the-shark simon-the-shark added the enhancement New feature or request label Aug 9, 2024
@simon-the-shark simon-the-shark self-assigned this Aug 9, 2024
@simon-the-shark simon-the-shark marked this pull request as ready for review August 9, 2024 16:42
@simon-the-shark simon-the-shark force-pushed the feat/open-buildings-from-contact branch from f6fe9da to ce48c25 Compare August 9, 2024 16:45
Copy link
Member

@mikolaj-jalocha mikolaj-jalocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :-) i especially like the new way of launching url utils with help of ref.

I left only one note regarding minor change.

return GestureDetector(
onTap: () async {
await LaunchUrlUtil.launch(url);
await ref.launch(url);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use here unawaited?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, but also there's nothing after it, so

onTap: () async => ref.launch(url),

should have similar effect I believe

import "../utils/where_non_null_iterable.dart";

extension LaunchUrlUtilX on WidgetRef? {
Future<bool> launch(String uriStr) async {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the change here. Universal in all places rn.

@simon-the-shark simon-the-shark force-pushed the feat/open-buildings-from-contact branch from ce48c25 to d2842fe Compare August 9, 2024 20:24
@simon-the-shark simon-the-shark merged commit 5f13c66 into main Aug 9, 2024
2 checks passed
@simon-the-shark simon-the-shark deleted the feat/open-buildings-from-contact branch August 9, 2024 20:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat/ building in departments should open buildings tab fix/ delete commas in address
2 participants