パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v0.17.3

flutter_web_browser

Chrome Custom Tabs および SFSafariViewController を使用してウェブページを開くためのFlutterプラグインプロジェクトです。

AndroidiOS
30日間ダウンロード
1.4万
いいね数
95
Pub ポイント
130

パッケージをインストール

flutter pub add flutter_web_browser

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Android の Chrome カスタムタブと iOS の SFSafariViewController を使用して、プラットフォーム固有のブラウザコンポーネントでウェブページを開くことを可能にする Flutter プラグインです。アプリを離れることなく、スムーズでネイティブに近い閲覧体験を提供します。パッケージは軽量で、既存の Flutter プロジェクトへの統合が容易です。ディープリンクをサポートし、ナビゲーション中にユーザーのコンテキストを維持します。セキュアでブランド化されたウェブ表示を必要とするアプリに最適で、オーバーヘッドを最小限に抑えます。

用途

  • アプリ内での外部リンクの開き方
  • ウェブコンテンツを安全に埋め込む
  • ユーザーをログインまたは支払いページにリダイレクトする
  • ヘルプまたは利用規約の表示
  • ネイティブブラウザUIによるユーザー参加の向上

主な機能

  • Android 上の Chrome カスタムタブ
  • iOS の SFSafariViewController
  • セキュアなネイティブブラウジング体験
  • 最小限のアプリ切り替え
  • ディープリンクをサポートしています
  • Flutter との簡単な統合

適している対象

  • 安全なウェブナビゲーションを必要とするアプリ
  • ネイティブブラウザ動作を望む開発者
  • 外部コンテンツリンクを含むプロジェクト
  • モバイルファーストアプリケーション
  • スムーズな遷移を重視するユーザーエクスペリエンス中心のアプリ

注意事項

  • 完全な機能には Android SDK 21+ が必要です
  • SFSafariViewController には iOS 9 以降が必要です
  • 完全なWebViewと比べてカスタマイズの選択肢が限られている
  • Webコンテンツのオフラインサポートなし
  • システムブラウザの利用可能性に依存します

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

flutter_web_browser

Pub

A flutter plugin to open a web page with Chrome Custom Tabs & SFSafariViewController.

This plugin is under development, APIs might change.

Getting Started

Installation

Install the library from pub:

dependencies:
  flutter_web_browser: "^0.17.3"
Import the library
import 'package:flutter_web_browser/flutter_web_browser.dart';
Open the web page
FlutterWebBrowser.openWebPage(
  url: "https://flutter.io/",
  customTabsOptions: const CustomTabsOptions(
    colorScheme: CustomTabsColorScheme.dark,
    toolbarColor: Colors.deepPurple,
    secondaryToolbarColor: Colors.green,
    navigationBarColor: Colors.amber,
    shareState: CustomTabsShareState.on,
    instantAppsEnabled: true,
    showTitle: true,
    urlBarHidingEnabled: true,
  ),
  safariVCOptions: const SafariViewControllerOptions(
    barCollapsingEnabled: true,
    preferredBarTintColor: Colors.green,
    preferredControlTintColor: Colors.amber,
    dismissButtonStyle: SafariViewControllerDismissButtonStyle.close,
    modalPresentationCapturesStatusBarAppearance: true,
  ),
);

License

This project is licensed under the terms of the MIT license.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト