|
|
|
@ -57,13 +57,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: [
|
|
|
|
@ -72,8 +72,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,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -82,10 +84,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(
|
|
|
|
@ -109,12 +108,14 @@ 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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
@ -124,9 +125,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,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -135,14 +137,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,
|
|
|
|
@ -161,16 +159,18 @@ 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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
@ -180,7 +180,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,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -213,12 +216,14 @@ 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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Center(
|
|
|
|
Center(
|
|
|
|
child: Column(
|
|
|
|
child: Column(
|
|
|
|
@ -230,7 +235,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,
|
|
|
|
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -244,10 +252,7 @@ class StepsWidget extends StatelessWidget {
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
height: 150,
|
|
|
|
height: 150,
|
|
|
|
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(
|
|
|
|
@ -283,13 +288,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,
|
|
|
|
@ -301,10 +306,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(
|
|
|
|
@ -328,17 +330,17 @@ 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,
|
|
|
|
fontSize:14,
|
|
|
|
fontSize: 14,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
@ -346,10 +348,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(
|
|
|
|
@ -373,20 +372,21 @@ 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(
|
|
|
|
"تقدير",
|
|
|
|
"تقدير",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize:14,
|
|
|
|
fontSize: 14,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -419,19 +419,21 @@ 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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
margin: EdgeInsets.only(right:index == 3? 15:0),
|
|
|
|
margin: EdgeInsets.only(right: index == 3 ? 15 : 0),
|
|
|
|
child: AppText(
|
|
|
|
child: AppText(
|
|
|
|
"خطة",
|
|
|
|
"خطة",
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize:14,
|
|
|
|
fontSize: 14,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
@ -445,7 +447,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;
|
|
|
|
@ -457,24 +461,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),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|