|
|
|
@ -58,13 +58,13 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
),
|
|
|
|
color: Colors.white,
|
|
|
|
SizedBox(
|
|
|
|
)),
|
|
|
|
height:5
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
@ -73,8 +73,10 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
StatusLabel(selectedStepId: index, stepId: 0,),
|
|
|
|
StatusLabel(
|
|
|
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
|
|
|
stepId: 0,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -83,10 +85,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 50,
|
|
|
|
top: 50,
|
|
|
|
left: MediaQuery
|
|
|
|
left: MediaQuery.of(context).size.width * 0.28,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width * 0.28,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => index >= 1 ? changeCurrentTab(1) : null,
|
|
|
|
onTap: () => index >= 1 ? changeCurrentTab(1) : null,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -110,9 +109,11 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 5,
|
|
|
|
height: 5,
|
|
|
|
@ -125,9 +126,10 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
StatusLabel(
|
|
|
|
StatusLabel(selectedStepId: index, stepId: 1,),
|
|
|
|
selectedStepId: index,
|
|
|
|
|
|
|
|
stepId: 1,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -136,14 +138,10 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 50,
|
|
|
|
top: 50,
|
|
|
|
left: MediaQuery
|
|
|
|
left: MediaQuery.of(context).size.width * 0.52,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width * 0.52,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () {
|
|
|
|
if (index >= 3)
|
|
|
|
if (index >= 3) changeCurrentTab(2);
|
|
|
|
changeCurrentTab(2);
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
@ -162,13 +160,15 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
color: index == 2
|
|
|
|
color: index == 2
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
: index > 2
|
|
|
|
: index > 2
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
? Color(0xFF359846)
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 5,
|
|
|
|
height: 5,
|
|
|
|
@ -181,7 +181,10 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
StatusLabel(selectedStepId: index, stepId: 2,),
|
|
|
|
StatusLabel(
|
|
|
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
|
|
|
stepId: 2,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -214,9 +217,11 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 5,
|
|
|
|
height: 5,
|
|
|
|
@ -231,7 +236,10 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
fontSize: 12,
|
|
|
|
fontSize: 12,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
StatusLabel(selectedStepId: index, stepId: 3,),
|
|
|
|
StatusLabel(
|
|
|
|
|
|
|
|
selectedStepId: index,
|
|
|
|
|
|
|
|
stepId: 3,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -245,10 +253,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: height == 0 ? 150 : height,
|
|
|
|
height: height == 0 ? 150 : height,
|
|
|
|
width: MediaQuery
|
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width,
|
|
|
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Divider(
|
|
|
|
child: Divider(
|
|
|
|
@ -284,13 +289,13 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
),
|
|
|
|
color: Colors.white,
|
|
|
|
SizedBox(
|
|
|
|
)),
|
|
|
|
height:5
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"شخصي",
|
|
|
|
"شخصي",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
@ -302,10 +307,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 50,
|
|
|
|
top: 50,
|
|
|
|
right: MediaQuery
|
|
|
|
right: MediaQuery.of(context).size.width * 0.28,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width * 0.28,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => index >= 2 ? changeCurrentTab(1) : null,
|
|
|
|
onTap: () => index >= 2 ? changeCurrentTab(1) : null,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -329,13 +331,13 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
),
|
|
|
|
color: Colors.white,
|
|
|
|
SizedBox(
|
|
|
|
)),
|
|
|
|
height:5
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
SizedBox(height: 5),
|
|
|
|
AppText(
|
|
|
|
AppText(
|
|
|
|
"هدف",
|
|
|
|
"هدف",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
@ -347,10 +349,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Positioned(
|
|
|
|
Positioned(
|
|
|
|
top: 50,
|
|
|
|
top: 50,
|
|
|
|
right: MediaQuery
|
|
|
|
right: MediaQuery.of(context).size.width * 0.52,
|
|
|
|
.of(context)
|
|
|
|
|
|
|
|
.size
|
|
|
|
|
|
|
|
.width * 0.52,
|
|
|
|
|
|
|
|
child: InkWell(
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () => index >= 3 ? changeCurrentTab(2) : null,
|
|
|
|
onTap: () => index >= 3 ? changeCurrentTab(2) : null,
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -374,15 +373,16 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 5,
|
|
|
|
height: 5,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
Padding(
|
|
|
|
|
|
|
|
|
|
|
|
padding: const EdgeInsets.only(right: 2),
|
|
|
|
padding: const EdgeInsets.only(right: 2),
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
"تقدير",
|
|
|
|
"تقدير",
|
|
|
|
@ -420,9 +420,11 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Center(
|
|
|
|
child: Center(
|
|
|
|
child: Icon(FontAwesomeIcons.check, size: 20,
|
|
|
|
child: Icon(
|
|
|
|
color: Colors.white,)
|
|
|
|
FontAwesomeIcons.check,
|
|
|
|
),
|
|
|
|
size: 20,
|
|
|
|
|
|
|
|
color: Colors.white,
|
|
|
|
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
height: 5,
|
|
|
|
height: 5,
|
|
|
|
@ -446,7 +448,9 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
|
|
|
|
|
|
|
|
class StatusLabel extends StatelessWidget {
|
|
|
|
class StatusLabel extends StatelessWidget {
|
|
|
|
const StatusLabel({
|
|
|
|
const StatusLabel({
|
|
|
|
Key key, this.stepId, this.selectedStepId,
|
|
|
|
Key key,
|
|
|
|
|
|
|
|
this.stepId,
|
|
|
|
|
|
|
|
this.selectedStepId,
|
|
|
|
}) : super(key: key);
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
|
|
final int stepId;
|
|
|
|
final int stepId;
|
|
|
|
@ -458,24 +462,30 @@ class StatusLabel extends StatelessWidget {
|
|
|
|
width: 65,
|
|
|
|
width: 65,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2, vertical: 3),
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2, vertical: 3),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: stepId == selectedStepId ? Color(0xFFF1E9D3) : stepId <
|
|
|
|
color: stepId == selectedStepId
|
|
|
|
selectedStepId ? Color(0xFFD8E8DB) : Color(0xFFCCCCCC),
|
|
|
|
? Color(0xFFF1E9D3)
|
|
|
|
|
|
|
|
: stepId < selectedStepId
|
|
|
|
|
|
|
|
? Color(0xFFD8E8DB)
|
|
|
|
|
|
|
|
: Color(0xFFCCCCCC),
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(5.0),
|
|
|
|
Radius.circular(5.0),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
border: Border.all(
|
|
|
|
border: Border.all(color: HexColor('#707070'), width: 0.30),
|
|
|
|
color: HexColor('#707070'),
|
|
|
|
|
|
|
|
width: 0.30),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
stepId == selectedStepId ? "inProgress" : stepId < selectedStepId
|
|
|
|
stepId == selectedStepId
|
|
|
|
|
|
|
|
? "inProgress"
|
|
|
|
|
|
|
|
: stepId < selectedStepId
|
|
|
|
? "Completed"
|
|
|
|
? "Completed"
|
|
|
|
: " Locked ",
|
|
|
|
: " Locked ",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
fontSize: 10,
|
|
|
|
fontSize: 10,
|
|
|
|
color: stepId == selectedStepId ? Color(0xFFCC9B14) : stepId <
|
|
|
|
color: stepId == selectedStepId
|
|
|
|
selectedStepId ? Color(0xFF359846) : Color(0xFF969696),
|
|
|
|
? Color(0xFFCC9B14)
|
|
|
|
|
|
|
|
: stepId < selectedStepId
|
|
|
|
|
|
|
|
? Color(0xFF359846)
|
|
|
|
|
|
|
|
: Color(0xFF969696),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|