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

Description

Wraps the flutter_url_launcher and flutter_inappwebview packages behind a unified interface. Handles the conditional routing between in-app browser (for internally flagged links) and the system browser (for external links), along with error handling for unsupported URL schemes and platform-specific edge cases.

Feature: External Resource Links

url-launcher-adapter

Responsibilities

  • Launch URLs in system browser via flutter_url_launcher
  • Open in-app browser via flutter_inappwebview for flagged links
  • Handle unsupported URL scheme errors with user-friendly fallback
  • Validate URL before attempting launch

Interfaces

launchUrl(String url, LaunchMode mode)
openInAppBrowser(String url, String title)
canLaunch(String url)
handleLaunchError(String url, Object error)