bodyContent method
List<Widget>
bodyContent(
- double width,
- double height,
- bool isLandscape,
- BuildContext context,
- String selectedLanguage,
Implementation
List<Widget> bodyContent(
double width,
double height,
bool isLandscape,
BuildContext context,
String selectedLanguage,
) {
return [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(left: 4),
child: Text(
titleText[selectedLanguage]!,
style: const TextStyle(
color: textBlue,
fontWeight: FontWeight.w600,
letterSpacing: 0.2,
fontSize: 20,
),
),
),
const SizedBox(height: 23),
Row(
children: <Widget>[
Container(
width: 28,
height: 28,
decoration: const BoxDecoration(
color: progressBarColor,
shape: BoxShape.circle,
),
margin: const EdgeInsets.only(left: 38),
child: const Icon(
Icons.check,
color: white,
),
),
Container(
decoration: const BoxDecoration(
color: progressBarColor,
),
width: 103,
height: 2,
),
Container(
width: 28,
height: 28,
decoration: BoxDecoration(
border: Border.all(
color: progressBarColor,
width: 2.0,
),
shape: BoxShape.circle,
color: progressBarColor,
),
child: const Center(
child: Text(
'2',
style: TextStyle(
color: white,
fontSize: 19,
fontWeight: FontWeight.w400,
),
),
)),
Container(
color: const Color(0xFF888989),
width: 83,
height: 2,
),
Container(
width: 28,
height: 28,
decoration: BoxDecoration(
border: Border.all(
color: const Color(0xFFD3D3D3),
width: 2.0,
),
shape: BoxShape.circle,
color: const Color(0xFFD3D3D3),
),
child: const Center(
child: Text(
'3',
style: TextStyle(
color: Color(0xFF888989),
fontSize: 19,
fontWeight: FontWeight.w400,
),
),
)),
],
),
Row(
children: <Widget>[
Container(
margin: const EdgeInsets.only(left: 16, top: 5),
width: 86,
child: Center(
child: Text(
stepOneText[selectedLanguage]!,
textAlign: TextAlign.center,
style: const TextStyle(
color: Color(0xFF232323),
fontSize: 16,
fontWeight: FontWeight.w400,
),
),
)),
Container(
margin: const EdgeInsets.only(left: 62),
child: Center(
child: Text(
stepTwoText[selectedLanguage]!,
style: const TextStyle(
color: Color(0xFF232323),
fontSize: 16,
),
),
)),
Container(
margin: const EdgeInsets.only(
left: 60,
),
child: Center(
child: Text(
stepThreeText[selectedLanguage]!,
textAlign: TextAlign.center,
style: const TextStyle(
color: Color(0xFF888989),
fontSize: 16,
),
),
)),
],
),
],
),
SizedBox(height: isLandscape ? height / 5 : 0),
Image.network(
selfieImage,
width: 227,
height: 165,
),
SizedBox(height: isLandscape ? height / 5 : 0),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 13),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
subTitleText[selectedLanguage]!,
style: const TextStyle(
color: textGreyLight,
fontWeight: FontWeight.w600,
fontSize: 25,
letterSpacing: 0.5,
),
),
const SizedBox(height: 26),
Row(
crossAxisAlignment: CrossAxisAlignment.baseline,
textBaseline: TextBaseline.alphabetic,
children: [
Image.network(
checkListIcon,
width: 24,
height: 24,
),
const SizedBox(width: 5),
Expanded(
child: Text(
requirementsOneText[selectedLanguage]!,
style: const TextStyle(
color: textGreyLight,
fontWeight: FontWeight.w400,
fontSize: 18,
letterSpacing: 0.36,
),
),
),
],
),
const SizedBox(height: 19),
Row(
crossAxisAlignment: CrossAxisAlignment.baseline,
textBaseline: TextBaseline.alphabetic,
children: [
Image.network(
checkListIcon,
width: 24,
height: 24,
),
const SizedBox(width: 5),
Expanded(
child: Text(
requirementsTwoText[selectedLanguage]!,
style: const TextStyle(
color: textGreyLight,
fontWeight: FontWeight.w400,
fontSize: 18,
letterSpacing: 0.36,
),
),
),
],
),
const SizedBox(height: 19),
Row(
crossAxisAlignment: CrossAxisAlignment.baseline,
textBaseline: TextBaseline.alphabetic,
children: [
Image.network(
checkListIcon,
width: 24,
height: 24,
),
const SizedBox(width: 5),
Expanded(
child: Text(
requirementsThreeText[selectedLanguage]!,
style: const TextStyle(
color: textGreyLight,
fontWeight: FontWeight.w400,
fontSize: 18,
letterSpacing: 0.36,
),
),
),
],
),
],
),
),
SizedBox(height: isLandscape ? height / 5 : 0),
Container(
width: double.infinity,
height: 62,
margin: const EdgeInsets.only(bottom: 40),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(5),
gradient: const LinearGradient(colors: buttonGradient),
),
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: Colors.transparent,
shadowColor: Colors.transparent,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),
),
onPressed: () {
Navigator.of(context).push(MaterialPageRoute(
builder: (routeContext) => const PrepareForSelfiePage(),
));
},
child: Text(
buttonContent[selectedLanguage]!,
style: const TextStyle(
color: white,
fontWeight: FontWeight.w500,
fontSize: 16,
),
),
),
),
];
}