native_kit_ios 0.1.1
native_kit_ios: ^0.1.1 copied to clipboard
iOS implementation of native_kit using UIKit, SwiftUI, VisionKit, PencilKit and system view controllers via Pigeon.
native_kit_ios example #
native_kit_ios is the endorsed iOS implementation of
native_kit. Apps never import it
directly — add native_kit and this package is included automatically:
dependencies:
native_kit: ^0.1.1
import 'package:native_kit/native_kit.dart';
// Presents a real UIAlertController(.actionSheet), anchored as an iPad popover.
final String? choice = await NativeKit.showActionSheet(
context: buttonContext,
items: const [
NativeMenuItem(id: 'share', title: 'Share', iosSymbol: 'square.and.arrow.up'),
NativeMenuItem(id: 'delete', title: 'Delete', style: NativeActionStyle.destructive),
],
);
// Presents UIColorPickerViewController with the system eyedropper.
final Color? color = await NativeKit.pickColor(context: context);
Set platform :ios, '16.0' in ios/Podfile and add the Info.plist usage
descriptions listed in the native_kit README.
The full interactive showcase (all components, live theme switching and an
XCUITest end-to-end suite) lives in the
repository's example/ app.