buildTitleItem method

Widget buildTitleItem(
  1. BuildContext context
)

Implementation

Widget buildTitleItem(BuildContext context) {
  return Column(
    children: <Widget>[
      Stack(
        children: <Widget>[
          Container(
            alignment: AlignmentDirectional.center,
            padding: Style.actionSheetHeaderPadding,
            child: Column(
              children: <Widget>[
                actionSheet.title != null
                    ? Text(actionSheet.title!,
                        style: TextStyle(
                            fontSize: Style.actionSheetHeaderFontSize,
                            fontWeight: FontWeight.bold))
                    : Container(),
                SizedBox(height: Style.intervalSm),
                actionSheet.description != null
                    ? Text(actionSheet.description!,
                        style: TextStyle(
                            fontSize: Style.actionSheetDescriptionFontSize,
                            color: Style.actionSheetDescriptionColor))
                    : Container(),
              ],
            ),
          ),
          Positioned(
            right: 0,
            top: 0,
            child: Padding(
              padding: EdgeInsets.all(Style.actionSheetCloseIconPadding),
              child: GestureDetector(
                onTap: () {
                  close(context);
                },
                child: Icon(actionSheet.closeIcon,
                    color: Style.actionSheetCloseIconColor,
                    size: Style.actionSheetCloseIconSize),
              ),
            ),
          )
        ],
      ),
      NDivider()
    ],
  );
}