패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.0.7

easy_url_launcher

앱에서 URL, 이메일, 전화, 문자를 열기 위한 간단하고 매우 쉬운 플러터 패키지

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
203
좋아요
40
Pub 점수
140

패키지 설치

flutter pub add easy_url_launcher

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

EasyUrlLauncher은 앱 내에서 URL, 이메일, 전화 통화 및 SMS 메시지를 쉽게 시작할 수 있도록 도와주는 가벼운 플러터 패키지입니다. Android, iOS, 웹, macOS, Windows, Linux 등 여러 플랫폼에서 일반적인 인텐트를 처리하기 위한 간단한 API를 제공합니다. 사용이 쉬우며, 반복 코드를 줄이고 기기 간 일관된 동작을 보장합니다. 최소한의 설정으로 기존 프로젝트에 원활하게 통합됩니다.

사용 사례

  • 브라우저에서 웹 링크 열기
  • 앱에서 직접 이메일 보내기
  • 전화 통화 시작
  • SMS 메시지 보내기
  • 네이티브 앱을 통한 콘텐츠 공유
  • 외부 서비스 시작

주요 기능

  • 간단한 한 줄 메서드 호출
  • 크로스 플랫폼 호환성
  • URL, 이메일, 전화 및 SMS 지원
  • 필수 최소 구성
  • 내장 오류 처리
  • 모바일, 데스크톱 및 웹에서 작동합니다

적합한 대상

  • 빠른 의도 통합을 찾는 개발자
  • 기본적인 공유 또는 통신 기능이 필요한 앱
  • 최소한의 종속성 요구 프로젝트
  • 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.