buildContent method

Widget buildContent(
  1. dynamic context,
  2. List<Widget> children
)

Implementation

Widget buildContent(context, List<Widget> children) {
  Widget widget = Material(
    color: Colors.white,
    // color: Theme.of(context).scaffoldBackgroundColor,
    // ? Colors.white
    // : Colors.grey,
    child: Container(
        child: onCancelPress == null
            ? Padding(
                padding: const EdgeInsets.symmetric(
                  // horizontal: 10.0,
                  vertical: 20.0,
                ),
                child: Column(
                    crossAxisAlignment: CrossAxisAlignment.start,
                    children: children),
              )
            : Column(
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Row(
                    children: [
                      Spacer(flex: 2,),
                      if(showlogo)
                      Image.asset(
                        "assets/logo.png",
                        height: 34,
                        package: "sprint_check",
                      ),
                      Spacer(),
                      IconButton(
                        icon: const Icon(
                          Icons.close,
                          color: Colors.grey,
                        ),
                        onPressed: onCancelPress,
                        color: Colors.black54,
                        // padding: const EdgeInsets.all(15.0),
                        iconSize: 30.0,
                      ),
                    ],
                  ),
                  Expanded(
                      child: Column(
                    children: children,
                  )),
                ],
              )),
  );

  return widget;
}