GithubHelp home page GithubHelp logo

amdkholil / tiny-alert Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7.43 MB

Flutter Package: Simple & tiny size alert dialog

Home Page: https://pub.dev/packages/tiny_alert

License: MIT License

Kotlin 0.62% Dart 94.05% Swift 5.16% Objective-C 0.17%
flutter flutter-package flutter-packages dart dart-package dart-packages

tiny-alert's Introduction

tiny_alert (flutter package)

Just simple alert in tiny size for simple UI.

Getting Started

add dependency latest version with command:

$ flutter pub add tiny_alert

or just adding to pubspec.yaml

dependecies:
    tiny_alert: <version>

and then run bellow command to get packages:

$ flutter pub get

Examples

  • Success

TinyAlert.success(
    context,
    title: "Success!",
    message: "This is a success message!",
);
  • Info

TinyAlert.info(
    context,
    title: "Info!",
    message: "This is a info message!",
);
  • Warning

TinyAlert.warning(
    context,
    title: "Warning!",
    message: "This is a warning message!",
);
  • Error

TinyAlert.error(
    context,
    title: "Error!",
    message: "This is a error message!",
);
  • Confirmation

TinyAlert.confirm(
    context,
    title: "Confrimation!",
    message: "This is a confirmation message!",
    onConfirm: () {
        Navigator.pop(context);
    },
);
// also available onCancale function
  • Loading

TinyAlert.progress(context, 
    label: "Loading...", 
    barrierDismissible: true,
); // barrierDismissible is optional, the default is false
  • Snackbar

TinyAlert.snackbar(
    context,
    "This is snackbar message!",
);

There are several features that the author cannot write in this documentation due to the author's limitations.

tiny-alert's People

Contributors

amdkholil avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.