alert 2.0.1 copy "alert: ^2.0.1" to clipboard
alert: ^2.0.1 copied to clipboard

A Flutter plugin for showing native alert dialog in IOS and Toast messages in Android.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:alert/alert.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: FlatButton(
            color: Colors.blueAccent,
            onPressed: () => Alert(message: 'Test').show(),
            child: Text('Show Alert'),
          ),
        ),
      ),
    );
  }
}
18
likes
130
pub points
84%
popularity

Publisher

unverified uploader

A Flutter plugin for showing native alert dialog in IOS and Toast messages in Android.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on alert