varun tyagi
varun tyagi

Reputation: 11

How can i add image in system_alert_window flutter

I am using system_alert_window flutter package and want to add user image in body but not able to achieve this. please help.

Upvotes: 1

Views: 676

Answers (1)

Navin Kumar
Navin Kumar

Reputation: 4027

You can use Dialog instead of alert window, in Dialog you can customise as your need.

 Dialog customDialog = Dialog(
  shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12.0)), 
  child: Container(
    height: 300.0,
    width: 300.0,
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: <Widget>[
       //Cutomise your widget with Image and Text
      ],
    ),
  ),
);

To show the Dialog

showDialog(context: context, builder: (BuildContext context) => customDialog);

Upvotes: -3

Related Questions