vk_native_client 0.0.6 copy "vk_native_client: ^0.0.6" to clipboard
vk_native_client: ^0.0.6 copied to clipboard

discontinuedreplaced by: cv_native_client
outdated

Native client to access platform specific features like clipboard, platform version, etc.

Warning This plugin is under development and not being tested throughly in every platform Use it with caution and please report any issues you find.

VK Native Client #

Flutter plugin for VK Native Client. This plugin allows you to access Native API's of platform.

Usage #

To use this plugin, add vk_native_client as a dependency in your pubspec.yaml file.

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
  vk_native_client: ^0.0.6

Example #

import 'package:vk_native_client/vk_native_client.dart';

// Get platform version
String platformVersion = await VkNativeClient.getPlatformVersion();

// Get clipboard data mime types
final List<VKClipboardMimeType> mimeTypes = await VkNativeClient.getClipboardDataMimeTypes();
log('Clipboard mime types: $mimeTypes');

// Get clipboard Data
final VkClipboardData? clipboardData = await VkNativeClient.getClipboardData();
log('Clipboard text: ${clipboardData?.plainText}');
log('Clipboard html: ${clipboardData?.htmlText}');

// Set clipboard Data
await VkNativeClient.setClipboardData(VkClipboardData(plainText: 'Hello World!', htmlText: '<b>Hello World!</b>'));
2
likes
0
points
10
downloads

Publisher

verified publishercodevedas.com

Weekly Downloads

Native client to access platform specific features like clipboard, platform version, etc.

Repository (GitHub)
View/report issues

Topics

#clipboard

Documentation

Documentation

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, js, plugin_platform_interface

More

Packages that depend on vk_native_client

Packages that implement vk_native_client