FLUTTER ECOSYSTEM

anuranBarman/ClipboardManager

텍스트를 클립보드에 복사하는 데 사용할 수 있는 플러터 플러그인

클립보드 관리자 프로젝트 이미지
Stars
17
Forks
17
최근 푸시(UTC)
2021. 9. 2.
프로젝트 상태
활성
Anuran Barman  GitHub avatar
GITHUB User

Anuran Barman ↗

I am a Principal Software Engineer. Fields of work are iOS,Flutter,NodeJS,React/NextJS,MongoDB

WiZN Systems Private LimitedBengaluru,India
언어RubyJavaDartSwiftObjective-C

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 1 개
  • flutter{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

clipboard_manager

simple flutter plugin to copy text to clipboard in both android and ios.

Install

  • Add clipboard_manager to your dependencies list in pubspec.yaml file
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2
  clipboard_manager: ^0.0.1
  • Run flutter packages get from your root project

  • import the package by import 'package:clipboard_manager/clipboard_manager.dart';

Usage

ClipboardManager.copyToClipBoard("your text to copy").then((result) {
                        final snackBar = SnackBar(
                          content: Text('Copied to Clipboard'),
                          action: SnackBarAction(
                            label: 'Undo',
                            onPressed: () {},
                          ),
                        );
                        Scaffold.of(context).showSnackBar(snackBar);
                      });

Example

the plugin comes with an simplest example app. run it to see it in working.