搜索插件、代码仓与 APP 分类

插件详情v6.3.3

url_launcher

用于启动 URL 的 Flutter 插件。支持网页、电话、短信和电子邮件协议。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
931万
喜欢数
8190
Pub 分数
160

安装插件

flutter pub add url_launcher

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

url_launcher 包使 Flutter 应用能够在外置应用中打开 URL,支持网页链接、电话号码、短信和电子邮件。它提供了一个简单的接口,使用平台特定的协议来启动 URL,确保在 Android、iOS、Web、macOS、Windows 和 Linux 上无缝集成。该插件处理 URL 验证,并将用户重定向到适当的 app,如浏览器、拨号器或邮件客户端。它非常适合在应用内分享内容、发起通话、发送消息或导航到外部网站。

适合场景

  • 在浏览器中打开网页链接
  • 发起电话呼叫
  • 发送短信消息
  • 撰写电子邮件
  • 通过链接分享内容
  • 重定向到外部资源

主要特点

  • 支持多种 URL 方案
  • 跨平台兼容性
  • 用于启动URL的简单API
  • 自动处理平台特定的意图
  • 安全的 URL 解析
  • 内置错误处理

适合对象

  • 需要外部导航的应用
  • 联系与通信功能
  • 内容共享工具
  • 用户支持和反馈系统
  • 电子商务和营销链接
  • 移动应用中的网络集成

使用建议

  • 需要正确的 URL 格式
  • 可能会触发系统权限提示
  • 对启动的应用程序行为控制有限
  • 未经配置,无法与自定义 URL 方案配合使用
  • 与不受信任的URL相关的潜在安全风险
  • 链接点击没有内置分析功能

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter Packages

Release Status Flutter CI Status

This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.

These packages are also available on pub.

Issues

Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled "package".

Contributing

If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.

If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.

Packages

These are the packages hosted in this repository:

Package Pub Points Usage Issues Pull requests
animations pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
camera pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cross_file pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_icons pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
cupertino_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
espresso pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
extension_google_sign_in_as_googleapis_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
file_selector pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_lints pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_plugin_android_lifecycle pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
flutter_svg_test pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
go_router_builder pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_adsense pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_fonts pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_maps_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_sign_in pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
image_picker pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
interactive_media_ads pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
in_app_purchase pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
local_auth pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
material_ui pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
metrics_center pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_parsing pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
path_provider pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pigeon pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
pointer_interceptor pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
plugin_platform_interface pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
quick_actions pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
google_identity_services_web pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
rfw pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
shared_preferences pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
two_dimensional_scrollables pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
url_launcher pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_codec pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
vector_graphics_compiler pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
video_player pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
web_benchmarks pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
webview_flutter pub package pub points downloads GitHub issues by-label GitHub pull requests by-label
xdg_directories pub package pub points downloads GitHub issues by-label GitHub pull requests by-label

所属分类

依赖

依赖清单 7 项

  • url_launcher_android^6.3.0
  • url_launcher_ios^6.2.4
  • url_launcher_linux^3.1.0
  • url_launcher_macos^3.1.0
  • url_launcher_platform_interface^2.3.0
  • url_launcher_web^2.2.0
  • url_launcher_windows^3.1.0

源码仓库

使用此插件的项目

所在榜单