aesthetic_dialogs 0.0.14+3 copy "aesthetic_dialogs: ^0.0.14+3" to clipboard
aesthetic_dialogs: ^0.0.14+3 copied to clipboard

outdated

This Flutter plugin allows you to display nice custom dialog boxes.

example/lib/main.dart

import 'dart:async';

import 'package:aesthetic_dialogs/aesthetic_dialogs.dart';
import 'package:flutter/material.dart';

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

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

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  Future<void> buildDialog() async {
    AestheticDialogs.showDialog(
        title: "My Dialog",
        message: "Hello!!!",
        cancelable: true,
        darkMode: false,
        dialogAnimation: DialogAnimation.IN_OUT,
        dialogGravity: DialogGravity.CENTER,
        dialogStyle: DialogStyle.FLASH,
        dialogType: DialogType.SUCCESS,
        duration: 3000);
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text('AestheticDialogs Flutter'),
        ),
        body: Center(
          child: ElevatedButton(
            onPressed: buildDialog,
            child: Text("Open Dialog"),
          ),
        ),
      ),
    );
  }
}
91
likes
150
points
31
downloads

Publisher

unverified uploader

Weekly Downloads

This Flutter plugin allows you to display nice custom dialog boxes.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins

More

Packages that depend on aesthetic_dialogs