fix steps

merge-requests/452/head
Elham Rababah 5 years ago
parent ed02bbc1f0
commit a768dd63cf

@ -22,9 +22,11 @@ class StepsWidget extends StatelessWidget {
children: [
Container(
height: height == 0 ? 150 : height,
width: MediaQuery.of(context).size.width,
width: MediaQuery.of(context).size.width * 0.9,
color: Colors.transparent,
child: Center(
child: Container(
width: MediaQuery.of(context).size.width * 0.87,
child: Divider(
color: Colors.grey,
height: 0.75,
@ -32,8 +34,9 @@ class StepsWidget extends StatelessWidget {
),
),
),
),
Positioned(
top: 50,
top: 43,
left: 0,
child: InkWell(
onTap: () => changeCurrentTab(0),
@ -84,8 +87,11 @@ class StepsWidget extends StatelessWidget {
),
),
Positioned(
top: 50,
left: MediaQuery.of(context).size.width * 0.28,
top: 43,
left: MediaQuery
.of(context)
.size
.width * 0.25,
child: InkWell(
onTap: () => index >= 1 ? changeCurrentTab(1) : null,
child: Column(
@ -137,8 +143,11 @@ class StepsWidget extends StatelessWidget {
),
),
Positioned(
top: 50,
left: MediaQuery.of(context).size.width * 0.52,
top: 43,
left: MediaQuery
.of(context)
.size
.width * 0.50,
child: InkWell(
onTap: () {
if (index >= 3) changeCurrentTab(2);
@ -192,7 +201,7 @@ class StepsWidget extends StatelessWidget {
),
),
Positioned(
top: 50,
top: 43,
right: 0,
child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab(4) : null,
@ -226,14 +235,13 @@ class StepsWidget extends StatelessWidget {
SizedBox(
height: 5,
),
Center(
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
AppText(
"Plan",
fontWeight: FontWeight.bold,
textAlign: TextAlign.center,
// textAlign: TextAlign.center,
fontSize: 12,
),
StatusLabel(
@ -242,7 +250,6 @@ class StepsWidget extends StatelessWidget {
),
],
),
),
],
),
),
@ -264,7 +271,7 @@ class StepsWidget extends StatelessWidget {
),
),
Positioned(
top: 50,
top: 43,
right: 0,
child: InkWell(
onTap: () => changeCurrentTab(0),
@ -296,18 +303,29 @@ class StepsWidget extends StatelessWidget {
)),
),
SizedBox(height: 5),
Column(
children: [
AppText(
"شخصي",
fontWeight: FontWeight.bold,
fontSize: 16,
),
StatusLabel(
selectedStepId: index,
stepId: 0,
),
],
),
],
),
),
),
Positioned(
top: 50,
right: MediaQuery.of(context).size.width * 0.28,
top: 43,
right: MediaQuery
.of(context)
.size
.width * 0.28,
child: InkWell(
onTap: () => index >= 2 ? changeCurrentTab(1) : null,
child: Column(
@ -338,18 +356,29 @@ class StepsWidget extends StatelessWidget {
)),
),
SizedBox(height: 5),
Column(
children: [
AppText(
"هدف",
fontWeight: FontWeight.bold,
fontSize: 14,
),
StatusLabel(
selectedStepId: index,
stepId: 1,
),
],
),
],
),
),
),
Positioned(
top: 50,
right: MediaQuery.of(context).size.width * 0.52,
top: 43,
right: MediaQuery
.of(context)
.size
.width * 0.52,
child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab(2) : null,
child: Column(
@ -384,23 +413,31 @@ class StepsWidget extends StatelessWidget {
),
Padding(
padding: const EdgeInsets.only(right: 2),
child: AppText(
child: Column(
children: [
AppText(
"تقدير",
fontWeight: FontWeight.bold,
fontSize: 14,
),
StatusLabel(
selectedStepId: index,
stepId: 2,
),
],
),
),
],
),
),
),
Positioned(
top: 50,
top: 43,
left: 0,
child: InkWell(
onTap: () => index >= 3 ? changeCurrentTab(4) : null,
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Container(
width: 38,
@ -431,11 +468,19 @@ class StepsWidget extends StatelessWidget {
),
Container(
margin: EdgeInsets.only(right: index == 3 ? 15 : 0),
child: AppText(
child: Column(
children: [
AppText(
"خطة",
fontWeight: FontWeight.bold,
fontSize: 14,
),
StatusLabel(
selectedStepId: index,
stepId: 3,
),
],
),
),
],
),

@ -68,7 +68,8 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndex>
// baseViewModel: model,
isLoading: _isLoading,
isShowAppBar: false,
body: Column(
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
@ -93,7 +94,7 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndex>
child: StepsWidget(
index: _currentIndex,
changeCurrentTab: changePageViewIndex,
height: MediaQuery.of(context).size.height * 0.21,
height: MediaQuery.of(context).size.height * 0.20,
),
),
Container(
@ -139,6 +140,7 @@ class _UpdateSoapIndexState extends State<UpdateSoapIndex>
],
),
),
),
);
}
}

Loading…
Cancel
Save