title property

  1. @override
Widget get title
override

Implementation

@override
Widget get title {
  if (options.title is Widget) {
    return SizedBox(
      width: percentW(54),
      height: percentH(10),
      child: options.title,
    );
  }
  return SizedBox(
    width: percentW(54),
    child: Opacity(
      opacity: 0.9,
      child: AutoSizeText(
        options.title,
        maxLines: 1,
        style: TextStyle(
          fontSize: Theme.of(options.context).textTheme.headline6?.fontSize,
          color: Colors.white,
          fontWeight: FontWeight.bold,
        ),
      ),
    ),
  );
}