steel_alert 0.0.2 copy "steel_alert: ^0.0.2" to clipboard
steel_alert: ^0.0.2 copied to clipboard

Steel Alert is a Flutter package that provides a simple way to show alerts in your app.

Steel Alert #

Steel alert is a UI Kit for Alert or Dilaogs. It comes with 3 types info, error and warning.

Preview #

Success #

[Success]

Error #

[Error]

Warning #

[Warning]

Getting started #

Add the dependency in pubspec.yaml

dependencies:
  steel_alert: ^0.0.1

Usage #

Firstly import the package


import 'package:steel_alert/steel_alert.dart';

After that you need to call setupLocator method in main function. And you must be define navigator key.


void main() {
  setupLocator();
  runApp(
    MaterialApp(
      navigatorKey: steelAlert.navigatorKey,
      home: const MyApp(),
      debugShowCheckedModeBanner: false,
    ),
  );
}

Here is how you can call dialog in your project.


ElevatedButton(
              onPressed: () {
                steelAlert.success(
                  title: 'Success',
                  message: 'This is a success alert',
                );
              },
              child: const Text("Show Success Alert"),
            ),

We have 3 types for a now.

  • steelAlert.success()
  • steelAlert.error()
  • steelAlert.warning()

Feedback #

Please feel free to give me any feedback or file issue helping support this plugin!

5
likes
0
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

Steel Alert is a Flutter package that provides a simple way to show alerts in your app.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, get_it

More

Packages that depend on steel_alert