alertify 0.0.2 alertify: ^0.0.2 copied to clipboard
A Flutter package that shows beautiful alert with 5 different styles.
import 'package:flutter/material.dart';
import '../lib/alertify.dart';
class AlertifyExample extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Container(
child: RaisedButton(onPressed: () {
Alertify(context: context,
isDismissible: true,
content: 'Some content',
title: 'title',
animationType: AnimationType.bottomToTop,
buttonText: 'Ok',
alertType: AlertifyType.error).show();
}, child: Text('Alert')),
),
),
);
}
}