dialog_alert_transition 2.0.0 copy "dialog_alert_transition: ^2.0.0" to clipboard
dialog_alert_transition: ^2.0.0 copied to clipboard

Creating a dialog is simpler and easier with the dialog_alert_transition package since it has transitions into and out of the dialog, it has a multilevel dialog handler. Available for android, ios, wi [...]

example/lib/main.dart

import 'package:alert_go_example/src/customDialog.dart';
import 'package:alert_go_example/src/multiDialog.dart';
import 'package:alert_go_example/src/singleDialog.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        elevatedButtonTheme: ElevatedButtonThemeData(
            style: ElevatedButton.styleFrom(
          foregroundColor: Colors.black,
        )),
      ),
      home: mihome(),
    );
  }
}

class mihome extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Container(
            margin: const EdgeInsets.symmetric(vertical: 15),
            child: ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context) => multiAlert()),
                );
              },
              child: const Text('multi'),
            ),
          ),
          Container(
            margin: const EdgeInsets.symmetric(vertical: 15),
            child: ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context) => const customAlert()),
                );
              },
              child: const Text('Custom'),
            ),
          ),
          Container(
            margin: const EdgeInsets.symmetric(vertical: 15),
            child: ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context) => singleAlert()),
                );
              },
              child: const Text('Single'),
            ),
          ),
          Container(
            margin: const EdgeInsets.symmetric(vertical: 15),
            child: ElevatedButton(
              onPressed: () {
                Navigator.of(context).push(
                  MaterialPageRoute(builder: (context) => singleAlert()),
                );
              },
              child: const Text('Position'),
            ),
          ),
        ],
      ),
    ));
  }
}
6
likes
140
points
40
downloads

Publisher

verified publishernio.ilove-soft.com

Weekly Downloads

Creating a dialog is simpler and easier with the dialog_alert_transition package since it has transitions into and out of the dialog, it has a multilevel dialog handler. Available for android, ios, windows, linux, mac, web

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on dialog_alert_transition