buildPageTitle method
Implementation
Widget buildPageTitle(){
return Container(
child: Stack(
children: <Widget>[
Image.asset(Img.get('image_28.jpg'),fit: BoxFit.cover, height: double.infinity, width: double.infinity),
Container( height: double.infinity, width: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [Colors.transparent, Colors.black.withOpacity(0.3), Colors.black.withOpacity(0.5)],
)
),
),
Align(
alignment: Alignment.bottomCenter,
child: Padding(
padding: EdgeInsets.all(15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Text("Elizabeth".toUpperCase(), style: MyText.subhead(context)!.copyWith(
color: MyColors.grey_10
)),
Text("Interdum Lectus Bibendum Suspendisse Potenti Nec.", style: MyText.display1(context)!.copyWith(
color: MyColors.grey_3, fontFamily: "serif"
)),
Container(width: 100, height: 2, color: MyColors.grey_10, margin: EdgeInsets.symmetric(vertical: 10)),
Text("DIGITAL ECONOMY", style: MyText.subhead(context)!.copyWith(
color: MyColors.grey_20, fontWeight: FontWeight.bold
)),
],
),
),
)
],
),
);
}