RatelHub / rflutter_alert

RFlutter Alert is super customizable and easy-to-use alert / popup dialog library for Flutter. You may create reusable alert styles or add buttons as much as you want with ease.
https://ratel.com.tr
MIT License
386 stars 117 forks source link

Add border to dialogbuttons #58

Closed Spiderbezno closed 4 years ago

Spiderbezno commented 4 years ago

Is it possible to add borders to dialog buttons??

ibrahimdevs commented 4 years ago

@Spiderbezno you are giving this plugin directly button widgets, so you can do whatever you want with buttons.

Example:

    Alert(
      context: context,
      type: AlertType.error,
      title: "RFLUTTER ALERT",
      desc: "Flutter is more awesome with RFlutter Alert.",
      buttons: [
        DialogButton(
          border: Border.all(color: Colors.black, width: 2),
          child: Text(
            "COOL",
            style: TextStyle(color: Colors.white, fontSize: 20),
          ),
          width: 120,
        )
      ],
    ).show();