aesthetic_dialogs 0.0.13 copy "aesthetic_dialogs: ^0.0.13" to clipboard
aesthetic_dialogs: ^0.0.13 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: "Ma Boite",
        message: "Bonjour",
        cancelable: true,
        darkMode: false,
        dialogAnimation: DialogAnimation.IN_OUT,
        dialogGravity: DialogGravity.CENTER,
        dialogStyle: DialogStyle.EMOJI,
        dialogType: DialogType.INFO,
        duration: 5000);
  }

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

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on aesthetic_dialogs