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

パッケージ詳細v0.0.7

easy_url_launcher

アプリ内でURL、メール、通話、SMSを起動するためのシンプルで非常に使いやすいFlutterパッケージ

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
203
いいね数
40
Pub ポイント
140

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

flutter pub add easy_url_launcher

パッケージ概要

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

EasyUrlLauncherは、アプリ内でのURL、メール、電話通話、SMSメッセージの起動を簡単にしてくれる軽量なFlutterパッケージです。Android、iOS、Web、macOS、Windows、Linuxなど複数のプラットフォームで一般的なインテントを処理するためのシンプルなAPIを提供しています。使いやすさを重視しており、ボイラープレートコードを削減し、デバイス間で一貫した動作を保証します。最小限の設定で既存プロジェクトにスムーズに統合できます。

用途

  • ブラウザでウェブリンクを開く
  • アプリから直接メールを送信する
  • 通話の開始
  • SMSメッセージの送信
  • ネイティブアプリを通じたコンテンツの共有
  • 外部サービスの起動

主な機能

  • シンプルな1行のメソッド呼び出し
  • クロスプラットフォーム互換性
  • URL、メール、通話、SMS をサポート
  • 最小構成が必要
  • 組み込みエラー処理
  • モバイル、デスクトップ、Webで動作します

適している対象

  • 迅速な意図統合を求める開発者
  • 基本的な共有または通信機能を必要とするアプリ
  • 最小限の依存関係を必要とするプロジェクト
  • Flutterナビゲーションを学ぶ初心者
  • プロトタイプとMVP

注意事項

  • 基本的な起動操作に限定
  • ディープリンク用のカスタマイズなし
  • 標準プロトコル以外のカスタムURLスキームをサポートしていません
  • システムレベルのハンドラに依存しています
  • 複雑なナビゲーションフローには適していません

元の README

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

A flutter package based on url_launcher package for call,sms,email and launch url in browser or app with url parameters and launch mode as platform default or platform specific mode for web

Features

  • Very easy to use
  • Support All plateforms

Getting started

Add package to your project by running the follwing command in your terminal

flutter pub add easy_url_launcher

Import pakage

import 'pakage:easy_url_launcher/easy_url_launcher.dart';

Demo

Easy Launcher Demo

Usage

  • You are free to use async & await in your code.
    Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            children: [
              MaterialButton(
                color: Colors.green,
                onPressed: () async {
                  await EasyLauncher.call(number: "767676776");
                },
                child: const Text("Call to a number"),
              ),
              MaterialButton(
                color: Colors.greenAccent,
                onPressed: () async {
                  await EasyLauncher.call(number: "*123#");
                },
                child: const Text("Run a ussd code"),
              ),
              MaterialButton(
                color: Colors.blue,
                onPressed: () async {
                  await EasyLauncher.sms(number: "1010", message: "Hello");
                },
                child: const Text("Send a sms"),
              ),
              MaterialButton(
                color: Colors.indigo,
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.email(
                      email: "sarwari.developer@gmail.com",
                      subject: "Test",
                      body: "Hello Flutter developer");
                },
                child: const Text("Send an email"),
              ),
              MaterialButton(
                color: Colors.deepPurple,
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.url(url: "https://pub.dev");
                },
                child: const Text("Open url"),
              ),
              MaterialButton(
                color: Colors.red,
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.openMap(
                      lati: "36.7032925", long: "67.1891222");
                },
                child: const Text("Open Google map"),
              ),
              MaterialButton(
                color: Colors.pink,
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.url(
                      url: "https://www.instagram.com/qasim.dev",
                      mode: Mode.platformDefault);
                },
                child: const Text("Open url in default app"),
              ),
               MaterialButton(
                color: Colors.green[700],
                textColor: Colors.white,
                onPressed: () async {
                  await EasyLauncher.sendToWhatsApp(
                      phone: "+93700000000", message: "hi");
                },
                child: const Text("Send to whatsapp"),
              ),
            ],
          ),

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

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

データはまだありません。