contentBox method

dynamic contentBox(
  1. dynamic context
)

Implementation

contentBox(context) {
  return Stack(
    children: <Widget>[
      BackdropFilter(
        filter: ImageFilter.blur(sigmaX: 2, sigmaY: 2),
        child: Container(
          padding: EdgeInsets.only(
              left: Constants.padding,
              top: Constants.avatarRadius,
              right: Constants.padding,
              bottom: Constants.padding),
          margin: EdgeInsets.only(top: Constants.avatarRadius),
          decoration: BoxDecoration(
              shape: BoxShape.rectangle,
              color: Colors.white,
              borderRadius: BorderRadius.circular(Constants.padding),
              boxShadow: [
                BoxShadow(
                    color: Colors.black.withValues(alpha: 0.4),
                    offset: Offset(0, 0),
                    spreadRadius: 0,
                    blurRadius: 15),
              ]),
          child: Column(
            mainAxisSize: MainAxisSize.min,
            children: <Widget>[
              TextRF(
                title!,
                languageSource: "System",
                style: TextStyle(fontSize: 22, fontWeight: FontWeight.w600),
              ),
              SizedBox(
                height: 15,
              ),
              Center(
                child: TextRF(
                  msg!,
                  languageSource: "System",
                  style: TextStyle(fontSize: 18),
                  align: TextAlign.center,
                ),
              ),
              SizedBox(
                height: 35,
              ),
              Align(
                alignment: Alignment.bottomRight,
                child: Row(
                  mainAxisAlignment: MainAxisAlignment.end,
                  children: [
                    InkWell(
                        onTap: () {
                          onConfirm!(true);
                          Navigator.of(context).pop(true);
                        },
                        child: Container(
                          width: 100,
                          margin: EdgeInsets.all(8),
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                            shape: BoxShape.rectangle,
                            color: Colors.blue.withValues(alpha: 0.3),
                            borderRadius: BorderRadius.circular(5),
                          ),
                          child: Center(
                            child: TextRF(
                              confirmText,
                              languageSource: "System",
                              style: TextStyle(fontSize: 15),
                            ),
                          ),
                        )),
                    InkWell(
                        onTap: () {
                          onConfirm!(false);
                          Navigator.of(context).pop(false);
                        },
                        child: Container(
                          width: 100,
                          margin: EdgeInsets.all(8),
                          padding: EdgeInsets.all(8),
                          decoration: BoxDecoration(
                            shape: BoxShape.rectangle,
                            color: Colors.red.withValues(alpha: 0.3),
                            borderRadius: BorderRadius.circular(5),
                          ),
                          child: Center(
                            child: TextRF(
                              cancelText,
                              languageSource: "System",
                              style: TextStyle(fontSize: 15),
                            ),
                          ),
                        )),
                  ],
                ),
              ),
            ],
          ),
        ),
      ),
      Positioned(
        left: Constants.padding,
        right: Constants.padding,
        child: CircleAvatar(
          backgroundColor: Colors.white,
          radius: Constants.avatarRadius,
          child: ClipRRect(
            borderRadius:
                BorderRadius.all(Radius.circular(Constants.avatarRadius)),
            child: Icon(
              icon,
              size: 64,
              color: Colors.deepOrange,
            ),
          ),
        ),
      ),
    ],
  );
}