messages_flutter 1.0.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 35

messages_flutter #

A new Flutter package.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.0.1] - TODO: Add release date. #

  • TODO: Describe initial release.


import 'package:messages_flutter/messages_flutter.dart';

void main() {
  // toast showing
  showToast("Hello World");
  showToastMessagesString("Hello World");
  showToastMessagesError("An Error");
  showToastMessagingRouting(100, 5000);

  // messages extension
  Messages messages = StringMessages("Hello World");

  // list extension for routing
  RoutingMessages routingMessages = [100, 5000].toRoutingMessages();
  [100, 5000].showToast();
  var message = [100, 5000].routingMessage;
  message = ["login", "buttons", "accountHint"].routingMessage;

  // default error handler
  Future.sync(() {
    throw 100;
  }).catchErrorDefault().then((_) {
    throw [100, 5000].toRoutingMessages();

Use this package as a library

1. Depend on it

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

  messages_flutter: ^1.0.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or 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:messages_flutter/messages_flutter.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 Jun 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.9+1
  • Flutter: 1.17.3

Health issues and suggestions

Fix lib/src/messages_extension.dart. (-57.81 points)

Analysis of lib/src/messages_extension.dart failed with 3 errors:

line 5 col 56: The getter 'showMessage' isn't defined for the type 'Messages'.

line 15 col 10: The getter 'showMessage' isn't defined for the type 'Messages'.

line 15 col 50: The getter 'showMessage' isn't defined for the type 'Messages'.

Document public APIs. (-1 points)

10 out of 10 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.

Maintenance issues and suggestions

No valid SDK. (-20 points)

The analysis could not detect a valid SDK that can use this package.

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (fluttertoast).

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 Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
flutter 0.0.0
fluttertoast ^3.1.3 3.1.3 4.0.1
messages_dart ^1.0.1 1.0.3
Transitive dependencies
charcode 1.1.3
collection 1.14.12
convert 2.1.1
crypto 2.1.5
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
xson 1.0.4