flutter_parse 1.0.0 copy "flutter_parse: ^1.0.0" to clipboard
flutter_parse: ^1.0.0 copied to clipboard

Plugin for managing and accessing Parse Server for Dart VM and Flutter.

example/flutter_parse_example.dart

import 'package:flutter_parse/flutter_parse.dart';

main() async {
  // create configuration
  ParseConfiguration config = ParseConfiguration(
    server: 'YOUR_PARSE_SERVER_URL',
    applicationId: 'YOUR_PARSE_APPLICATION_ID',
    clientKey: 'YOUR_PARSE_CLIENT_KEY',
    masterKey: 'YOUR_PARSE_MASTER_KEY',
    localStorage: Storage(''),
  );
  // initialize parse using configuration
  Parse.initialize(config);

  // create and save object
  final object = ParseObject(className: 'Beacon')
    ..set('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
    ..set('major', 1)
    ..set('enabled', true)
    ..set('timestamp', DateTime.now());
  await object.save();

  // query for objects
  final query = ParseQuery(className: 'Beacon')
    ..whereEqualTo('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
    ..whereLessThanOrEqualTo('major', 10);
  final beacons = await query.find();
  print(beacons.length);
}
15
likes
110
pub points
69%
popularity

Publisher

verified publishermesosfer.com

Plugin for managing and accessing Parse Server for Dart VM and Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

http, meta, sembast, sembast_web, web_socket_channel

More

Packages that depend on flutter_parse