title property

  1. @override
Widget title
override

Implementation

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