buildTitle method
Implementation
buildTitle(BuildContext context) {
return Container(
decoration: BoxDecoration(
color: backgroundColor,
borderRadius:
BorderRadius.only(topLeft: borderRadius, topRight: borderRadius)),
//color: color,
padding: const EdgeInsets.symmetric(vertical: 40, horizontal: 15),
child: Column(
children: [
Padding(
padding: const EdgeInsets.only(bottom: 10),
child: (icon is Icon
? IconTheme.merge(
data: IconThemeData(size: 70, color: textColor),
child: icon)
: icon)),
(title != null
? (title is Text
? AnimatedDefaultTextStyle(
style: (title as Text).style ??
Theme.of(context)
.textTheme
.headline6!
.copyWith(color: textColor),
textAlign: (title as Text).textAlign ?? TextAlign.center,
duration: kThemeChangeDuration,
child: title!)
: title)
: Container())!
],
),
);
}