getBackgroundWidget method

dynamic getBackgroundWidget(
  1. dynamic backColor,
  2. dynamic context
)

Implementation

getBackgroundWidget(backColor, context) {
  myLogAll('getBackgroundWidget');
  if (isNull(context)) {
    return getEmptyWidget();
  }
  //return getEmptyWidget();
  Color backColor = appParam[gsBackgroundColor];

  if (!isNull(backColor)) {
    backColor = backColor;
  }
  return Center(
      child: ClipRect(
          child: BackdropFilter(
              filter: ImageFilter.blur(sigmaX: 10.0, sigmaY: 10.0),
              child: Container(
                  height: MediaQuery.of(context).size.height,
                  width: MediaQuery.of(context).size.width,
                  decoration: BoxDecoration(color: backColor)))));
}