rflutter_alert icon indicating copy to clipboard operation
rflutter_alert copied to clipboard

Fixed the white padding on top if desc is null

Open AsjadSiddiqui opened this issue 4 years ago • 1 comments

For creating an alert with a gradient Using Container to fill the whole alert with 0 padding

Before this change: before

After this change after

Code to reproduce this alert:

final width = MediaQuery.of(context).size.width;
final height = MediaQuery.of(context).size.height;

Alert(
      context: context,
      type: AlertType.none,
      style: AlertStyle(
        buttonAreaPadding: EdgeInsets.zero,
        isCloseButton: false,
        isButtonVisible: false,
        alertBorder: RoundedRectangleBorder(
          borderRadius: BorderRadius.circular(0.0),
          side: BorderSide(
            color: Colors.grey,
          ),
        ),
        alertPadding:
            EdgeInsets.symmetric(horizontal: 20 / 375 * width, vertical: 0),
        constraints: BoxConstraints(
          minHeight: 0.6 * height,
          minWidth: 0.9 * width,
        ),
      ),
      padding: EdgeInsets.zero,
      content: Container(
        color: Colors.red,
        height: 0.6 * height,
        width: 0.95 * width,
        child: Column(
          children: <Widget>[],
        ),
      ),
      buttons: [],
    ).show();

AsjadSiddiqui avatar Nov 17 '21 07:11 AsjadSiddiqui

please merge it

nguyendangkhoi avatar Apr 01 '22 09:04 nguyendangkhoi

@AsjadSiddiqui thanks for contribution!

ibrahimdevs avatar May 16 '23 12:05 ibrahimdevs