v0.0.4
clipboard_manager
텍스트를 클립보드에 복사하는 데 사용할 수 있는 플러터 플러그인입니다.
38좋아요 8430일 다운로드15Pub 점수
플랫폼 정보 없음
텍스트를 클립보드에 복사하는 데 사용할 수 있는 플러터 플러그인
{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
simple flutter plugin to copy text to clipboard in both android and ios.
clipboard_manager to your dependencies list in pubspec.yaml filedependencies:
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';
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);
});
the plugin comes with an simplest example app. run it to see it in working.