Skip to content

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

License

Notifications You must be signed in to change notification settings

melihcelik09/steel_alert

Repository files navigation

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.3+2

Usage

Firstly import the package

import 'package:steel_alert/steel_alert.dart';

After that you need to define navigator key.

void main() {
  runApp(
    MaterialApp(
      navigatorKey: Steel.navigationKey,
      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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published