title property

Widget get title

Implementation

Widget get title {
  if (options.title is Widget) {
    return Container(
      width: percentW(100),
      height: percentH(10),
      alignment: Alignment.center,
      child: options.title,
    );
  }
  return Container(
    alignment: Alignment.center,
    width: percentW(100),
    height: percentH(10),
    child: Opacity(
      opacity: 0.95,
      child: AutoSizeText(
        options.title,
        maxLines: 1,
        style: TextStyle(
          fontSize: Theme.of(options.context).textTheme.headline6?.fontSize,
          color: primaryColor,
          fontWeight: FontWeight.bold,
        ),
      ),
    ),
  );
}