Skip to main content

native_kit_ios 0.1.1 copy "native_kit_ios: ^0.1.1" to clipboard
native_kit_ios: ^0.1.1 copied to clipboard

PlatformiOS

iOS implementation of native_kit using UIKit, SwiftUI, VisionKit, PencilKit and system view controllers via Pigeon.

example/README.md

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.

0
likes
160
points
46
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

iOS implementation of native_kit using UIKit, SwiftUI, VisionKit, PencilKit and system view controllers via Pigeon.

Repository (GitHub)
View/report issues
Contributing

Topics

#native #ui #adaptive #modals #pickers

License

MIT (license)

Dependencies

flutter, native_kit_platform_interface

More

Packages that depend on native_kit_ios

Packages that implement native_kit_ios