buildTitle method
Implementation
Widget buildTitle() {
return Container(
height: 18,
margin: const EdgeInsets.only(top: 14),
child: Stack(
children: <Widget>[
Positioned(
top: 0,
left: 0,
bottom: 0,
child: Text(
"${info.title}",
style: const TextStyle(
fontSize: 14,
color: Color(0XFF222222),
fontWeight: FontWeight.w600),
),
),
Positioned(
top: 0,
right: 0,
bottom: 0,
child: onClose == null
? const Row()
: GestureDetector(
onTap: () {
onClose!();
},
child: PhoenixTools.getAssetImageWithColor(
GuideAssets.iconClose, Colors.black,
package: 'phoenix_guide'),
),
),
],
),
);
}