⚡️A highly customizable, powerful and easy-to-use alerting library for Flutter.
This library allows you to show messages or alerts in your app quickly
and easily. It can be used as an alternative to
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 ❤️
Getting started #
pubspec.yaml of your flutter project, add the following
dependencies: ... flash: "^1.1.0"
In your library add the following import:
Sample Project #
We have an exhaustive sample project demonstrating almost every feature of the library.
It is recommended to check the sample project to get a complete understanding of all the features offered by the library.
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.
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
- Dismiss with horizontal drag.
[1.1.0+2] - 2019-8-14
marginadded null checks
[1.1.0+1] - 2019-8-14
- Fixed animation dismissed but
[1.1.0] - 2019-8-13
- Rename to flash
- Refactoring code makes it easier to customize content
[1.0.0] - 2019-8-7
- Flashbar creation
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:
$ 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:
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]
We analyzed this package on Jan 19, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
- Dart: 2.7.0
- pana: 0.13.4
- Flutter: 1.12.13+hotfix.5
lib/flash.dart. (-2.48 points)
lib/flash.dart reported 5 hints:
line 744 col 9: The value of the local variable 'dragExtent' isn't used.
line 1124 col 17: 'ButtonTheme.bar' is deprecated and shouldn't be used. Use ButtonBarTheme instead. This feature was deprecated after v1.9.1..
line 1178 col 17: 'ButtonTheme.bar' is deprecated and shouldn't be used. Use ButtonBarTheme instead. This feature was deprecated after v1.9.1..
line 1232 col 17: 'ButtonTheme.bar' is deprecated and shouldn't be used. Use ButtonBarTheme instead. This feature was deprecated after v1.9.1..
line 1292 col 17: 'ButtonTheme.bar' is deprecated and shouldn't be used. Use ButtonBarTheme instead. This feature was deprecated after v1.9.1..