flutter_parse 0.1.2

flutter_parse #

Flutter plugin for managing Parse SDK for both Android and iOS.

Features:

  • ParseObject
  • ParseUser
  • ParseQuery

Installation #

Add to pubspec.yaml:

dependencies:
  flutter_parse: ^0.1.1

Initializing Library #

void main() async {
  await FlutterParse.initialize(
      server: 'YOUR_PARSE_SERVER_URL',
      applicationId: 'YOUR_PARSE_APPLICATION_ID',
      clientKey: 'YOUR_PARSE_CLIENT_KEY');
  
  // initialize parse libraru before running your app
  runApp(MyApp());
}

Create Object #

final object = ParseObject('Beacon')
      ..set('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
      ..set('major', 1)
      ..set('enabled', true)
      ..set('timestamp', DateTime.now());
await object.saveInBackground();

Register User #

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

Query Object #

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

Author #

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

License #

BSD License

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/README.md

Initializing Library #

void main() async {
  await FlutterParse.initialize(
      server: 'YOUR_PARSE_SERVER_URL',
      applicationId: 'YOUR_PARSE_APPLICATION_ID',
      clientKey: 'YOUR_PARSE_CLIENT_KEY');
  
  // initialize parse libraru before running your app
  runApp(MyApp());
}

Create Object #

final object = ParseObject('Beacon')
      ..set('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
      ..set('major', 1)
      ..set('enabled', true)
      ..set('timestamp', DateTime.now());
await object.saveInBackground();

Register User #

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

Query Object #

final query = ParseQuery('Beacon')
  ..whereEqualTo('proximityUUID', 'CB10023F-A318-3394-4199-A8730C7C1AEC')
  ..whereLessThanOrEqualTo('major', 10);
final listObjects = 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.1.2

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support 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]
23
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]
61
Learn more about scoring.

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

  • Dart: 2.4.0
  • pana: 0.12.19
  • Flutter: 1.7.8+hotfix.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Fix lib/parse/parse_user.dart. (-0.50 points)

Analysis of lib/parse/parse_user.dart reported 1 hint:

line 40 col 65: This function has a return type of 'ParseUser', but doesn't end with a return statement.

Format lib/parse/parse_decoder.dart.

Run flutter format to format lib/parse/parse_decoder.dart.

Format lib/parse/parse_encoder.dart.

Run flutter format to format lib/parse/parse_encoder.dart.

Fix additional 5 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/parse/parse_exception.dart (Run flutter format to format lib/parse/parse_exception.dart.)
  • lib/parse/parse_file.dart (Run flutter format to format lib/parse/parse_file.dart.)
  • lib/parse/parse_geo_point.dart (Run flutter format to format lib/parse/parse_geo_point.dart.)
  • lib/parse/parse_object.dart (Run flutter format to format lib/parse/parse_object.dart.)
  • lib/parse/parse_query.dart (Run flutter format to format lib/parse/parse_query.dart.)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8

Admin