flutter_parse 0.2.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 50

Flutter Parse #

FOSSA Status Build Status Coverage Status

Packages for managing Parse SDK using pure Dart.

Features:

  • ParseACL
  • ParseConfig
  • ParseFile
  • ParseObject
  • ParseQuery
  • ParseRole
  • ParseSession
  • ParseUser

Installation #

Add to pubspec.yaml:

dependencies:
  flutter_parse: ^0.2.3

Import Library #

import 'package:flutter_parse/flutter_parse.dart';

Initializing Library #

void main() {
  ParseConfiguration config = ParseConfiguration(
    server: 'YOUR_PARSE_SERVER_URL',
    applicationId: 'YOUR_PARSE_APPLICATION_ID',
    clientKey: 'YOUR_PARSE_CLIENT_KEY',
  );
  Parse.initialize(config);
  runApp(MyApp());
}

Create 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();

Register User #

final user = ParseUser()
  ..username = 'alan'
  ..password = 'maulana';
await user.signUp();

Query Object #

final query = ParseQuery(className: 'Beacon')
  ..whereEqualTo('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
  ..whereLessThanOrEqualTo('major', 10);
final listObjects = await query.findAsync();

Author #

Parse Dart plugin is developed by Alann Maulana. You can contact me at kangmas.alan@gmail.com.

License #

BSD License

0.2.3 #

  • Add parameter for databaseFactory for better support of web

0.2.2 #

  • Add support for web
  • Get rid of using part for library

0.2.1 #

  • Fix license, import package, description

0.2.0 #

  • Rebuilding package using pure Dart

0.1.3 #

  • Bug fix

0.1.2 #

  • Fix homepage url
  • Bug fix

0.1.1 #

  • Add internal query encoder
  • Fix create parse object with dictionary/map

0.1.0 #

  • Adding iOS function :
    • ParseObject
    • ParseUser
    • ParseQuery
  • Fix bug Android code

0.0.1 #

  • Initial release.
  • Android :
    • ParseObject
    • ParseUser
    • ParseQuery

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',
  );
  // 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.findAsync();
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  flutter_parse: ^0.2.3

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:flutter_parse/flutter_parse.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
50
Learn more about scoring.

We analyzed this package on Oct 11, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:flutter_parse/flutter_parse.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.5.0 <3.0.0
http ^0.12.0+2 0.12.0+2
meta ^1.1.7 1.1.7
path ^1.6.0 1.6.4
sembast ^2.0.1+2 2.1.0
Transitive dependencies
async 2.4.0
charcode 1.1.2
collection 1.14.12
http_parser 3.1.3
source_span 1.5.5
string_scanner 1.0.5
synchronized 2.1.0+1
term_glyph 1.1.0
typed_data 1.1.6
Dev dependencies
pedantic ^1.8.0 1.8.0+1
test ^1.6.0
test_coverage ^0.2.0