spea_mobile_socket_conn 0.0.5

spea_mobile_socket_conn #

Simple package to connect via wifi to a spea machine.

Getting Started #

  • Show main dialog with saved profile list and add profile button:

    Socket socket = await SpeaMobileClient.showProfileList()
    
  • Write String to server:

    socket.write(myString);
    
  • Override handler:

    doneHandler() --> callback when socket close or end suddenly
    
    errorHandler(error) --> callback when errors occur
    
    dataHandler(data) --> callback when a string is received
    
  • IOS setup:

    add this key in ios Info.plist
    
    <key>io.flutter.embedded_views_preview</key>
    <true/>
    

[0.0.1] - 07.08.2019

  • Simple way to connect to spea equipment.

[0.0.2] - 07.08.2019

  • Bug fix ##[0.0.3] - 07.08.2019
  • Bug fix 2 ##[0.0.4] - 07.08.2019
  • Bug fix 3

Use this package as a library

1. Depend on it

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


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

We analyzed this package on Aug 18, 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.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/spea_mobile_socket_conn.dart.

Run flutter format to format lib/spea_mobile_socket_conn.dart.

Maintenance issues and suggestions

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

At the time of the analysis the homepage field https://pub.dev/flutter was unreachable.

The package description is too short. (-17 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.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and spea_mobile_socket_conn.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

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.1.0 <3.0.0
connectivity ^0.4.3+5 0.4.3+7
flutter 0.0.0
shared_preferences ^0.5.3+1 0.5.3+4
spea_mobile_qrcode ^0.0.3 0.0.3
wifi_configuration ^1.0.3 1.0.14
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.6 1.1.7
qr_code_scanner 0.0.12
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test