Handheld

Handheld allows you build mobile applications using Dart and PhoneGap.

Quick Guide

  1. Go through the PhoneGap setup guide and make sure that PhoneGap is working before you proceed.

  2. Add the folowing to your pubspec.yaml and run pub install

    dependencies:
      handheld: any
  1. Run it
    import "package:handheld/handheld.dart";
    main() {
      handheld.onDeviceReady((Device device) {
        device.notification.alert("hello from Dart");
      });
    }

PhoneGap API status

Function Supported API Version
Accelerometer no 2.5
Camera no 2.5
Capture no 2.5
Compass no 2.5
Connection no 2.5
Contacts no 2.5
Device yes 2.5
Events no 2.5
File no 2.5
Geolocation no 2.5
Globalization no 2.5
InAppBrowser no 2.5
Media no 2.5
Notification no 2.5
Splashscreen no 2.5
Storage no 2.5

Libraries

handheld

Dart wrapper for PhoneGap

handheld_builder

Utilities for building and deploying Dart apps on PhoneGap devices

handheld_dev

Mock utility for testing