curvedialog 0.0.1 copy "curvedialog: ^0.0.1" to clipboard
curvedialog: ^0.0.1 copied to clipboard

outdated

A Simple Curved Dialog Alert with Custom Message Display.

Flutter Curved Dialog #

A Simple Curved Dialog Alert with Custom Message Display.

Getting Started #

Add this to your package's pubspec.yaml file:

dependencies:
  curvedialog: "^0.0.1"

Simple Usage:

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

void main() {
    runApp(new MaterialApp(
    title: 'Curvedailog Demo',
    home: new Curvedailogexample(),
    debugShowCheckedModeBanner: false,
  ));
    // });
  
}

class Curvedailogexample extends StatefulWidget {
  @override
  _CurvedailogexampleState createState() => _CurvedailogexampleState();
    }

class _CurvedailogexampleState extends State<Curvedailogexample> {

_showdialog(){
  showDialog(
        context: context,
        builder: (context) {
        return Curvedialog(
        title: 'Notice Title',
        notice: 'Notice message',
          );
        },
      );
    }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Curvedailog Demo"),
      ),
      body: Center(
        child: Container(
              margin: EdgeInsets.all(20),
              child: FlatButton(
                child: Text('Show Dialog'),
                onPressed: _showdialog(),
              ),
            ),
      ),
    );
  }
    }

Issues #

If you encounter problems, open an issue. Pull request are also welcome.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Simple Curved Dialog Alert with Custom Message Display.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on curvedialog