feathers_socket_client 0.0.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 48

feathers_socket_client #

Simple client for feathers using sockets

Getting Started #

At the moment there is only the client for the connection and to handle the basic crisis, we hope to increase the functionalities in addition to improving the documentation and the structure of the project. You are welcome to contribute with the structure or code of the library to improve it. Then an TODO will go up to organize the main elements to improve the library.

[0.0.1] - Initial version of the library #

  • Simple client for feathers using sockets

example/lib/main.dart

/**
 * @ Author: Carlos Henry C├ęspedes <chenryhabana205@gmail.com>
 * @ Create Time: 2020-02-18 18:01:29
 * @ Modified by: Carlos Henry C├ęspedes <chenryhabana205@gmail.com>
 * @ Modified time: 2020-02-18 19:25:35
 * @ Description:
 */

import 'package:flutter/material.dart';
import 'package:oktoast/oktoast.dart';

import 'injector_container.dart';

import 'ui/routes.gr.dart';

void main() async {
  await initInjection();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return OKToast(
      child: MaterialApp(
        title: 'Material App',
        onGenerateRoute: Router.onGenerateRoute,
        initialRoute: Router.loginPage,
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  feathers_socket_client: ^0.0.3

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:feathers_socket_client/feathers_socket_client.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
8
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
70
Overall:
Weighted score of the above. [more]
48
Learn more about scoring.

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

  • Dart: 2.8.4
  • pana: 0.13.15
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart

Because:

  • feathers_socket_client that is a package requiring null.

Health suggestions

Fix lib/featherjs_client.dart. (-0.50 points)

Analysis of lib/featherjs_client.dart reported 1 hint:

line 1 col 1: Prefer using /// for doc comments.

Fix lib/featherjs_events.dart. (-0.50 points)

Analysis of lib/featherjs_events.dart reported 1 hint:

line 1 col 1: Prefer using /// for doc comments.

Maintenance issues and suggestions

Homepage URL doesn't exist. (-20 points)

At the time of the analysis the homepage field https://featherflutterapi.qvaweb.com/ was unreachable.

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.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.3.0 <3.0.0
event_bus ^1.1.1 1.1.1
flutter 0.0.0
socket_io_client ^0.9.7+2 0.9.10
Transitive dependencies
collection 1.14.12 1.14.13
logging 0.11.4
meta 1.1.8 1.2.2
sky_engine 0.0.99
socket_io_common 0.9.2
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies
flutter_test