amaze_alert 0.0.4

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 25

amaze_alert #

A Flutter package provides amazing dynamic alert dialogs.

0.0.1 #

  • Initial Release

0.0.2 #

  • Minor Update

0.0.3 #

  • Added Example

0.0.4 #

  • Added support for dart 2.0

example/main.dart

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

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'Flutter Demo',
      theme: new ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: new MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  MyHomePageState createState() {
    return new MyHomePageState();
  }
}

class MyHomePageState extends State<MyHomePage> with TickerProviderStateMixin {
  AnimationController animationController;

  @override
  void initState() {
    super.initState();
    animationController = new AnimationController(
        vsync: this, duration: new Duration(milliseconds: 2000));
  }

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('Amaze Alert Demo'),
      ),
      body: new ListView(
        children: <Widget>[
          new Padding(
            padding: const EdgeInsets.all(8.0),
            child: new RaisedButton(
              child: new Text('Fade Alert'),
              onPressed: () {
                new AmazeAlert(
                    context: context,
                    title: 'Fade Animation',
                    text:
                        'This is an example of a fade animation. This is an example of a fade animation. This is an example of a fade animation. This is an example of a fade animation. This is an example of a fade animation. ',
                    animationController: animationController,
                    amazeAimation: AmazeAnimation.Fade,
                    curve: Curves.easeInOut);
              },
            ),
          ),
          new Padding(
            padding: const EdgeInsets.all(8.0),
            child: new RaisedButton(
              child: new Text('Rotate Alert'),
              onPressed: () {
                new AmazeAlert(
                    context: context,
                    title: 'Rotate Animation',
                    text:
                        'This is example of rotate animation. This is example of rotate animation. This is example of rotate animation. This is example of rotate animation. This is example of rotate animation.',
                    animationController: animationController,
                    amazeAimation: AmazeAnimation.Rotate,
                    curve: Curves.easeInOut);
              },
            ),
          ),
          new Padding(
            padding: const EdgeInsets.all(8.0),
            child: new RaisedButton(
              child: new Text('Scale Alert'),
              onPressed: () {
                new AmazeAlert(
                    context: context,
                    title: 'Scale Animation',
                    text:
                        'This is example of scale animation. This is example of scale animation. This is example of scale animation. This is example of scale animation. This is example of scale animation. This is example of scale animation. ',
                    animationController: animationController,
                    amazeAimation: AmazeAnimation.Scale,
                    curve: Curves.easeInOut);
              },
            ),
          ),
          new Padding(
            padding: const EdgeInsets.all(8.0),
            child: new RaisedButton(
              child: new Text('ScaleRotate Alert'),
              onPressed: () {
                new AmazeAlert(
                    context: context,
                    title: 'ScaleRotate Animation',
                    text:
                        'This is example of ScaleRotate animation. This is example of ScaleRotate animation. This is example of ScaleRotate animation. This is example of ScaleRotate animation. This is example of ScaleRotate animation.',
                    animationController: animationController,
                    amazeAimation: AmazeAnimation.ScaleRotate,
                    curve: Curves.easeInOut);
              },
            ),
          ),
        ],
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  amaze_alert: ^0.0.4

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:amaze_alert/amaze_alert.dart';
  
Version Uploaded Documentation Archive
0.0.5 Oct 26, 2018 Go to the documentation of amaze_alert 0.0.5 Download amaze_alert 0.0.5 archive
0.0.4 Aug 8, 2018 Go to the documentation of amaze_alert 0.0.4 Download amaze_alert 0.0.4 archive
0.0.3 Aug 7, 2018 Go to the documentation of amaze_alert 0.0.3 Download amaze_alert 0.0.3 archive
0.0.2 Aug 7, 2018 Go to the documentation of amaze_alert 0.0.2 Download amaze_alert 0.0.2 archive
0.0.1 Aug 7, 2018 Go to the documentation of amaze_alert 0.0.1 Download amaze_alert 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
27
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
57
Overall:
Weighted score of the above. [more]
25
Learn more about scoring.

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

  • Dart: 2.3.2
  • pana: 0.12.18
  • Flutter: 1.5.4-hotfix.2

Platforms

Detected platforms:

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running flutter pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.3.0-dev.0.5.flutter-a1668566e5.
 
 Because amaze_alert depends on test >=0.12.0-beta.3 <1.3.0 which requires SDK version >=1.8.0 <2.0.0-∞, version solving failed.

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Make sure dartdoc successfully runs on your package's source files. (-10 points)

Dependencies were not resolved.

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.

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

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0