parse_connect 0.0.2

  • Example
  • Installing
  • Versions
  • 67

parse_connect package for Flutter #

Parse_Connect is a package that provides Parse client functionality for Flutter. It is currently based on , and developed against, a Parse server setup on Back4App. This first release is limited and provides basic functionality for:

  • Object
  • User

With it you should be able to create, edit, update and delete Objects as well as signing up, updating, deleting and logging on Users.

This is currently VERY MUCH Work in Progress.

Example Usage #

As I eat my own dog food (never did like that phrase, but it kinda fits) I will put some code snippets on the project Wiki here.

Getting Started #

For package install see here.

For help getting started with Flutter, view the online documentation.

[0.0.2] - 05 Nov 2018.

  • Documentation updates only.

[0.0.1] - 03 Nov 2018.

  • Initial release with limited Object and User functionality.


import 'package:flutter/material.dart';
import 'package:parse_connect/parse_connect.dart' as ParseConnect;

void main() => runApp(ParseDemo());

class ParseDemo extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(title: 'ParseDemo', home: DemoScreen());

/// Simple Demo of using Parse_Connect to connect  a Flutter app to a Parse Server
/// This demo and the Package where developed and tested again  a server on the
///  service and has not be tested again other Parser services
class DemoScreen extends StatefulWidget {
  _DemoScreenState createState() => _DemoScreenState();

class _DemoScreenState extends State<DemoScreen> {
  ParseConnect.ParseAPI api = ParseConnect.ParseAPI(

  initState() {
    api.debug = true; // for testing lets print out some debug messages

  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Back4App Parse Demo"),
      body: ListView(
        children: <Widget>[
            onPressed: () async {
              // Test Object Interface

              // Test User interface
              _testUserInterface("myuser", "123qw!", "a@bc.w");
            child: Text("Run Parse Test"),

  // This is an example of the User interface
  // This will run Create, Query, Login, Read, Update,
  _testUserInterface(String username, String password, String email) async {
    ParseConnect.ParseResult result;
    String userID, sessionToken;

    // CREATE a user object
    result = await api
        .create({"username": username, "password": password, "email": email});
    if (!result.ok) {

    // Query to see if an account exists already
    result = await api.user().query(where: '{"email": "$email"}');
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // Send an Email Verification Request
    //result = await api.user().verifyEmail(email);
    // throw("${result.errorCode}:${result.errorMessage}");

    // LOGIN user
    result = await api.user().login(username, password);
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // note the session token & userid
    sessionToken =['sessionToken'];
    userID =['objectId'];

    // get user details
    print("Test READ()");
    result = await api.user(userID).read();
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // Test Password Reset Request
    //result = await api.user().passwordReset(email);
    // throw("${result.errorCode}:${result.errorMessage}");

    // Test UPDATE user
    result = await api
        .update({"jobtitle": " Developer Advocate"}, sessionToken);
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // DELETE the test user object
    //result = await api.user(userID).delete(sessionToken);
    // throw("${result.errorCode}:${result.errorMessage}");

  /// This is an example of the calls that can be made again a custom Parse object
  // The methods will be run in the order of Create, Query, Update, Read, Delete
  _testObjectInterface(String objectClassName) async {
    ParseConnect.ParseResult result;
    String objectID;

    // CREATE a test object
    result =
        await api.object(objectClassName).create({"Name": "Around the Lake"});
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");
    objectID =['objectId'];

    result = await api.object(objectClassName).query();
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // UPDATE created object
    result = await api
        .update(objectID, {"vehicle": "Motorbike"});

    // READ updated object
    result = await api.object(objectClassName).read(objectID);
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

    // DELETE the created objet
    result = await api.object(objectClassName).delete(objectID);
    if (!result.ok) {
      throw ("${result.errorCode}:${result.errorMessage}");

Use this package as a library

1. Depend on it

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

  parse_connect: ^0.0.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:parse_connect/parse_connect.dart';
Version Uploaded Documentation Archive
0.0.9 Nov 29, 2018 Go to the documentation of parse_connect 0.0.9 Download parse_connect 0.0.9 archive
0.0.8 Nov 20, 2018 Go to the documentation of parse_connect 0.0.8 Download parse_connect 0.0.8 archive
0.0.7 Nov 20, 2018 Go to the documentation of parse_connect 0.0.7 Download parse_connect 0.0.7 archive
0.0.6 Nov 20, 2018 Go to the documentation of parse_connect 0.0.6 Download parse_connect 0.0.6 archive
0.0.5 Nov 17, 2018 Go to the documentation of parse_connect 0.0.5 Download parse_connect 0.0.5 archive
0.0.4 Nov 11, 2018 Go to the documentation of parse_connect 0.0.4 Download parse_connect 0.0.4 archive
0.0.3 Nov 8, 2018 Go to the documentation of parse_connect 0.0.3 Download parse_connect 0.0.3 archive
0.0.2 Nov 5, 2018 Go to the documentation of parse_connect 0.0.2 Download parse_connect 0.0.2 archive
0.0.1 Nov 3, 2018 Go to the documentation of parse_connect 0.0.1 Download parse_connect 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

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

  • Dart: 2.3.1
  • pana: 0.12.16
  • Flutter: 1.5.4-hotfix.2


Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Maintenance suggestions

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev.68.0 <3.0.0
flutter 0.0.0
http ^0.11.3+17 0.11.3+17 0.12.0+2
Transitive dependencies
async 2.2.0
charcode 1.1.2
collection 1.14.11
http_parser 3.1.3
meta 1.1.6 1.1.7
path 1.6.2
sky_engine 0.0.99
source_span 1.5.5
string_scanner 1.0.4
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies