title property
Implementation
Widget get title {
if (options.title is Widget) {
return SizedBox(
width: percentW(40),
height: percentH(10),
child: options.title,
);
}
return SizedBox(
width: percentW(40),
child: Opacity(
opacity: 0.8,
child: AutoSizeText(
options.title,
maxLines: 1,
style: TextStyle(
fontSize: Theme.of(options.context).textTheme.headline6?.fontSize,
color: primaryColor,
fontWeight: FontWeight.bold,
),
),
),
);
}