flash 1.2.0

  • Readme
  • Changelog
  • Example
  • Installing
  • 93

Flash #

⚡️A highly customizable, powerful and easy-to-use alerting library for Flutter.

Specs #

pub

This library allows you to show messages or alerts in your app quickly and easily. It can be used as an alternative to Snackbar or Toast or Dialog and offers a plethora of useful features and customization options for you to play with.

It has been written 100% in Dart. ❤️

Table of Contents #

Spread Some ❤️

GitHub followers

Getting started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  flash: "^1.1.0"

In your library add the following import:

import 'package:flash/flash.dart';

Sample Project #

We have an exhaustive sample project demonstrating almost every feature of the library.

Usage #

It is recommended to check the sample project to get a complete understanding of all the features offered by the library.

basic top bottom toast dialog

Contribution #

I highly encourage the community to step forward and improve this library further. You can fix any reported bug, propose or implement new features, write tests, etc.

Here is a quick list of things to remember

  • Check the open issues before creating a new one,
  • Help me in reducing the number of open issues by fixing any existing bugs,
  • Check the roadmap to see if you can help in implementing any new feature,
  • You can contribute by writing unit and integration tests for this library,
  • If you have any new idea that aligns with the goal of this library, feel free to raise a feature request and discuss it.

License #

Copyright 2019 sososdk

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

[1.2.0] - 2019-10-14

Added #

  • Dismiss with horizontal drag.
  • Added FlashHelper for example.

[1.1.0+2] - 2019-8-14

Fixes #

  • margin added null checks

[1.1.0+1] - 2019-8-14

Fixes #

  • Fixed animation dismissed but dismissInternal() not called.

[1.1.0] - 2019-8-13

Changed #

  • Rename to flash
  • Refactoring code makes it easier to customize content

Added #

  • FlashPosition.center

[1.0.0] - 2019-8-7

Added #

  • Flashbar creation

example/README.md

example #

A new Flutter project.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

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

Use this package as a library

1. Depend on it

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


dependencies:
  flash: ^1.2.0

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

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

  • Dart: 2.5.1
  • pana: 0.12.21
  • Flutter: 1.9.1+hotfix.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

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

Analysis of lib/flash.dart reported 1 hint:

line 744 col 9: The value of the local variable 'dragExtent' isn't used.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test