amaze_alert 0.0.4

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

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 packages get

Alternatively, your editor might support pub get or flutter packages 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.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]
45
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
50
Overall:
Weighted score of the above. [more]
33
Learn more about scoring.

We analyzed this package on Oct 21, 2018, and provided a score, details, and suggestions below. Analysis was completed with status tool failures using:

  • Dart: 2.0.0
  • pana: 0.12.4
  • Flutter: 0.9.5

Platforms

Detected platforms: unsure

Error(s) prevent platform classification:

Fix dependencies in pubspec.yaml.

Analysis issues and suggestions

Fix dependencies in pubspec.yaml.

Running flutter packages pub upgrade failed with the following output:

ERR: The current Dart SDK version is 2.1.0-dev.5.0.flutter-4cf2d3990b.
 
 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.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Package is pre-v0.1 release. (-10 points)

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

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