parse_server_dart 0.0.5

  • Readme
  • Changelog
  • Example
  • Installing
  • 25

parse_server_dart #

A Parse Server library for Dart developers.

The original one seems not working and abandoned.

Usage #

These seems work, still needs test and tweak

  • Users
    • signUp
    • login
    • user query
  • Basic Query
    • query all
  • Objects
    • creation

A simple usage example can be found in the 'example' directory with almost all working functions.


  • A lot ......

Changelog #

0.0.1 #

  • Initial version, created by Stagehand


import 'package:flutter/material.dart';
import 'dart:math';
import 'package:parse_server_dart/parse_server_dart.dart';
import 'const.dart';

void main() => runApp(new MyApp());

var rndSeed = new Random();

String randomWord(){
  const wordList = ['now','is','come','time','for','all','good','this','Jack','not'];
  return wordList[rndSeed.nextInt(wordList.length-1)];

String randomString(int wordCount){
  var res = [];
  for(int i=0;i<wordCount;i++){
  var r = res.join(' ');
  var num = rndSeed.nextInt(100);
  return "$r $num";

void addObject() {
    var article = parse.object("Article");

Parse parse = new Parse(new Credentials(Const.PARSE_APPID), Const.PARSE_SERVER_URL);

class MyApp extends StatelessWidget{
  @override Widget build(BuildContext context){
    return new MaterialApp(
      title:'Parse Demo',
      home: new ParseList()

class ParseList extends StatefulWidget {
  @override createState(){
    var state = ParseListState();
    return state;

class ParseListState extends State<ParseList>{
  List objList = [];

  Future<List> getObjects() async{
    var q = parse.query("Article");
    return  q.findObjects();

        objList = list;

    var name = randomWord();
    var password = 'nopass';
      print("signup done as: $name");
      print("res: $res");

      for (var user in users) {
        var name = user['username'];
        print("user: $name");
        print("login as first user: $res");

  @override Widget build(BuildContext context){
    return new Scaffold(
      appBar: new AppBar(
        title:new Text('Parse Demo App'),
        actions: <Widget>[
          new IconButton(
            icon: new Icon(Icons.add),
            tooltip: 'Add Object',
          new IconButton(
            icon: new Icon(Icons.refresh),
            tooltip: 'Reload',
            onPressed: ()=>loadObjects(),
          new IconButton(
            icon: new Icon(Icons.verified_user),
            tooltip: 'Sign-up new User',
            onPressed: ()=>signUp()
      body:new Center(child:ListView.builder(
        padding: new EdgeInsets.all(8.0),
        itemExtent: 40.0,
        itemBuilder: (BuildContext context, int index){
          var val = objList[index]['name'];
          var id = index+1;
          return new Text("$id:$val");
        itemCount: objList.length

Use this package as a library

1. Depend on it

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

  parse_server_dart: ^0.0.5

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_server_dart/parse_server_dart.dart';
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 Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health issues and suggestions

Document public APIs. (-0.72 points)

106 out of 107 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Fix lib/src/parse_object.dart. (-6.31 points)

Analysis of lib/src/parse_object.dart reported 13 hints, including:

line 15 col 15: Don't type annotate initializing formals.

line 15 col 39: Don't type annotate initializing formals.

line 16 col 22: Avoid using braces in interpolation when not needed.

line 36 col 57: Avoid using braces in interpolation when not needed.

line 45 col 58: Avoid using braces in interpolation when not needed.

Fix lib/src/parse_base.dart. (-2.48 points)

Analysis of lib/src/parse_base.dart reported 5 hints:

line 16 col 8: The declaration '_handleResponse' isn't referenced.

line 18 col 19: Don't type annotate initializing formals.

line 18 col 43: Don't type annotate initializing formals.

line 36 col 15: The value of the field '_parseObject' isn't used.

line 38 col 13: The value of the field '_liveQuery' isn't used.

Fix lib/src/parse_user.dart. (-1.99 points)

Analysis of lib/src/parse_user.dart reported 4 hints:

line 39 col 63: Avoid using braces in interpolation when not needed.

line 149 col 65: Avoid using braces in interpolation when not needed.

line 158 col 59: Avoid using braces in interpolation when not needed.

line 158 col 67: Avoid using braces in interpolation when not needed.

Fix additional 7 files with analysis or formatting issues. (-7.47 points)

Additional issues in the following files:

  • lib/src/queries/parse_query.dart (4 hints)
  • lib/src/queries/parse_query_controller.dart (3 hints)
  • lib/src/queries/parse_query_state.dart (3 hints)
  • lib/src/parse_http_client.dart (2 hints)
  • lib/src/parse_livequery.dart (2 hints)
  • lib/src/credentials.dart (1 hint)
  • lib/src/queries/parse_query_constants.dart (Run flutter format to format lib/src/queries/parse_query_constants.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-20 points)

The version constraint in pubspec.yaml does not support the latest published versions for 2 dependencies (http, json_annotation).

Package is getting outdated. (-47.95 points)

The package was last published 77 weeks ago.

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

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 0.11.3+17 0.12.0+4
json_annotation ^1.2.0 1.2.0 3.0.1
path ^1.4.1 1.6.4
web_socket_channel ^1.0.6 1.1.0
Transitive dependencies
async 2.4.1
charcode 1.1.3
collection 1.14.11 1.14.12
convert 2.1.1
crypto 2.1.4
http_parser 3.1.4
meta 1.1.8
sky_engine 0.0.99
source_span 1.7.0
stream_channel 2.0.0
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
vector_math 2.0.8