Infrastructure low complexity Shared Component mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

Flutter utility wrapping the url_launcher package to open external URLs in the device browser or optionally an in-app web view (feature-flagged). Provides a fallback user-facing error message when a URL cannot be opened, with screen-reader-compatible error announcements.

Feature: External Resource Links

url-launcher-adapter

Responsibilities

  • Launch external URLs via canLaunchUrl / launchUrl from url_launcher
  • Display localized fallback snackbar when URL cannot be opened
  • Conditionally route to in-app web view when feature flag is enabled
  • Announce launch errors accessibly via semantic announcements

Interfaces

openUrl(String url, {bool preferInApp = false}) Future<void>
canOpen(String url) Future<bool>