All Projects → best-flutter → sweetalert

best-flutter / sweetalert

Licence: other
sweetalert for flutter

Programming Languages

dart
5743 projects
objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to sweetalert

Flarts
Flutter Charts
Stars: ✭ 61 (+17.31%)
Mutual labels:  flutter-package
jquery.dialog.js
A lightweight replacement for the browser's default dialog boxes.
Stars: ✭ 17 (-67.31%)
Mutual labels:  alert
shimmer animation
This shimmer animation widget can help you bring simple yet beautiful skeleton loaders to your flutter app with ease.
Stars: ✭ 29 (-44.23%)
Mutual labels:  flutter-package
BTPS-SecPack
This repository contains a collection of PowerShell tools that can be utilized to protect and defend an environment based on the recommendations of multiple cyber security researchers at Microsoft. These tools were created with a small to medium size enterprise environment in mind as smaller organizations do not always have the type of funding a…
Stars: ✭ 33 (-36.54%)
Mutual labels:  alert
buttons tabbar
A Flutter package that implements a TabBar where each label is a toggle button.
Stars: ✭ 49 (-5.77%)
Mutual labels:  flutter-package
swipedetector
A Flutter package to detect up, down, left, right swipes.
Stars: ✭ 34 (-34.62%)
Mutual labels:  flutter-package
notice.js
💯 Javascript notification library
Stars: ✭ 25 (-51.92%)
Mutual labels:  alert
FlutterExpandableMenu
A new Flutter package which helps developers in creating Expandable Menu.
Stars: ✭ 18 (-65.38%)
Mutual labels:  flutter-package
flex color scheme
A Flutter package to make and use beautiful color scheme based themes.
Stars: ✭ 370 (+611.54%)
Mutual labels:  flutter-package
Interactive-Add-Button-Layout
Custom Layout with interactive add button to impove your UI and UX .
Stars: ✭ 20 (-61.54%)
Mutual labels:  flutter-package
flutter link previewer
URL preview extracted from the provided text with basic customization and ability to render from cached data.
Stars: ✭ 35 (-32.69%)
Mutual labels:  flutter-package
Flogs
An Advanced Logging Framework develop in flutter that provides quick & simple logging solution.
Stars: ✭ 158 (+203.85%)
Mutual labels:  flutter-package
survey kit
Flutter library to create beautiful surveys (aligned with ResearchKit on iOS)
Stars: ✭ 68 (+30.77%)
Mutual labels:  flutter-package
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (-53.85%)
Mutual labels:  alert
change app package name
Change App Package Name with single command. It makes the process very easy and fast.
Stars: ✭ 72 (+38.46%)
Mutual labels:  flutter-package
react-native-popup
React Native Animated Popup Modal
Stars: ✭ 19 (-63.46%)
Mutual labels:  alert
Flutter-Floating-Menu
A new Flutter package which helps developers in creating Floating Menu.
Stars: ✭ 37 (-28.85%)
Mutual labels:  flutter-package
dartssh2
SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as easy to use.
Stars: ✭ 63 (+21.15%)
Mutual labels:  flutter-package
getx snippets extension
An extension to accelerate the process of developing applications with flutter, aimed at everyone using the GetX package.
Stars: ✭ 142 (+173.08%)
Mutual labels:  flutter-package
juxtapose
A flutter widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider horizontally or vertically.
Stars: ✭ 75 (+44.23%)
Mutual labels:  flutter-package

pub package

sweetalert

sweetalert for flutter.

Showcases

Getting started

Add dependency

sweetalert: any

Usage

Basic usage

 SweetAlert.show(context, title: "Just show a message");

With a subtitle

 SweetAlert.show(context,
                      title: "Just show a message",
                      subtitle: "Sweet alert is pretty");

With a success state

 SweetAlert.show(context,
                      title: "Just show a message",
                      subtitle: "Sweet alert is pretty",
                      style: SweetAlertStyle.success);

With a confirm state

SweetAlert.show(context,
                      title: "Just show a message",
                      subtitle: "Sweet alert is pretty",
                      style: SweetAlertStyle.confirm,
                      showCancelButton: true, onPress: (bool isConfirm) {
        if (isConfirm) {
          SweetAlert.show(context,style: SweetAlertStyle.success,title: "Success");
          // return false to keep dialog
          return false;
        }
      });

Do some job

 SweetAlert.show(context,
          subtitle: "Do you want to delete this message",
          style: SweetAlertStyle.confirm,
          showCancelButton: true, onPress: (bool isConfirm) {
        if(isConfirm){
          SweetAlert.show(context,subtitle: "Deleting...", style: SweetAlertStyle.loading);
          new Future.delayed(new Duration(seconds: 2),(){
            SweetAlert.show(context,subtitle: "Success!", style: SweetAlertStyle.success);
          });
        }else{
          SweetAlert.show(context,subtitle: "Canceled!", style: SweetAlertStyle.error);
        }
        // return false to keep dialog
        return false;
      });
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].