curvedialog 0.0.1 curvedialog: ^0.0.1 copied to clipboard
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.