Dotted Button
A easy flutter package to have a custom button with various shape with dotted border.
Getting started
Add dependency
You can use the command to add dio as a dependency with the latest stable version:
$ dart pub add dotted_button_flutter
Or you can manually add dio into the dependencies section in your pubspec.yaml:
dependencies:
dotted_button_flutter: ^replace-with-latest-version
Super simple to use
DottedButton(
onTap: () {
setState(() {
msg = 'Circle Border';
});
},
height: 230,
width: 100,
margin: const EdgeInsets.all(20),
borderType: BorderType.Oval,
color: Colors.red,
boxShadow: const [
BoxShadow(
color: Colors.black,
blurRadius: 10,
),
],
child: const Text("Circle Border"),
),