animated_dialog 1.0.6 copy "animated_dialog: ^1.0.6" to clipboard
animated_dialog: ^1.0.6 copied to clipboard

A simple Animated Dialog, with editable content, maintain organization, class and design with animated dialogs for bringing live to your app.

example/main.dart

import 'package:animated_dialog/animated_dialog.dart';
import 'package:flutter/material.dart';
 
void main() => runApp(MyApp());
 
class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Material App Bar'),
        ),
        body: Center(
          child: Container(
            child: ElevatedButton(
              style: ButtonStyle(
                shape: MaterialStateProperty.all(RoundedRectangleBorder(
                  borderRadius: BorderRadius.circular(10)
                ),)
              ),
              child: Text("Press me"),
              onPressed: (){
                showDialog(
                  context: context,
                  builder:(ctx) => AnimatedDialog(
                    child: Text("Hello"),
                    color: Colors.red,
                    borderRadius: BorderRadius.circular(10),
                    width: MediaQuery.of(context).size.width * 0.8,
                    animationTime: Duration(milliseconds: 700),
                  )
                );
              },
            ),
          ),
        ),
      ),
    );
  }
}
4
likes
30
pub points
47%
popularity

Publisher

unverified uploader

A simple Animated Dialog, with editable content, maintain organization, class and design with animated dialogs for bringing live to your app.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_dialog