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>'));
Libraries
- data/data
- vk_native_client
- vk_native_client_method_channel
- vk_native_client_platform_interface
- web/clipboard_web
- In order to not need this ignore, consider extracting the "web" version of your plugin as a separate package, instead of inlining it in the same package as the core of your plugin. ignore: avoid_web_libraries_in_flutter
- web/default_clipboard_web
- web/vk_native_client_web