wt1.1.2e NumberPicker, error fix
This commit is contained in:
parent
7354611881
commit
27c1d26dfd
@ -148,7 +148,7 @@
|
|||||||
"Edit My Custom Plan": "Edit My Custom Plan",
|
"Edit My Custom Plan": "Edit My Custom Plan",
|
||||||
"Suggested Training Plan": "Suggested Training Plan",
|
"Suggested Training Plan": "Suggested Training Plan",
|
||||||
"My Special Plan": "My Special Plan",
|
"My Special Plan": "My Special Plan",
|
||||||
"My Arnold's Plan":"Stars Execercise Plan",
|
"My Arnold's Plan":"Stars Exercise Plan",
|
||||||
"My Trainee's Plan": "My Trainee's Plan",
|
"My Trainee's Plan": "My Trainee's Plan",
|
||||||
"Execute My Trainee's Training Plan": "Execute My Trainee's Training Plan",
|
"Execute My Trainee's Training Plan": "Execute My Trainee's Training Plan",
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ class _ExerciseExecuteAddPage extends State<ExerciseExecutePlanAddPage> with Tra
|
|||||||
highlightSelectedValue: (i + 1) == exerciseBloc.step,
|
highlightSelectedValue: (i + 1) == exerciseBloc.step,
|
||||||
initialValue: exerciseBloc.unitQuantity.toInt(),
|
initialValue: exerciseBloc.unitQuantity.toInt(),
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 200,
|
maxValue: 650,
|
||||||
step: 1,
|
step: 1,
|
||||||
textStyle: TextStyle(fontWeight: FontWeight.bold),
|
textStyle: TextStyle(fontWeight: FontWeight.bold),
|
||||||
textStyleHighlighted: TextStyle(fontSize: 24, color: Colors.indigo, fontWeight: FontWeight.bold),
|
textStyleHighlighted: TextStyle(fontSize: 24, color: Colors.indigo, fontWeight: FontWeight.bold),
|
||||||
|
@ -127,7 +127,7 @@ class _ExercisePlanDetailAddPage extends State<ExercisePlanDetailAddPage> with T
|
|||||||
highlightSelectedValue: true,
|
highlightSelectedValue: true,
|
||||||
initialValue: bloc.quantityUnit.toInt(),
|
initialValue: bloc.quantityUnit.toInt(),
|
||||||
minValue: 0,
|
minValue: 0,
|
||||||
maxValue: 200,
|
maxValue: 650,
|
||||||
step: 1,
|
step: 1,
|
||||||
onChanged: (value) => {
|
onChanged: (value) => {
|
||||||
bloc.add(ExercisePlanCustomAddChangeQuantityUnit(quantity: value.toDouble()))
|
bloc.add(ExercisePlanCustomAddChangeQuantityUnit(quantity: value.toDouble()))
|
||||||
|
@ -44,10 +44,10 @@ class _MyDevelopmentPage extends State<MyDevelopmentPage> with Trans {
|
|||||||
ImageButton(
|
ImageButton(
|
||||||
textAlignment: Alignment.topCenter,
|
textAlignment: Alignment.topCenter,
|
||||||
text: t("My Exercise Logs"),
|
text: t("My Exercise Logs"),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.orange, fontWeight: FontWeight.bold, backgroundColor: Colors.black54.withOpacity(0.4)),
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold, backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/edzesnaplom400400.jpg",
|
image: "asset/image/edzesnaplom400400.jpg",
|
||||||
top: 150,
|
top: 150,
|
||||||
left: 15,
|
left: 10,
|
||||||
onTap:() => this.callBackExerciseLog(exerciseRepository, customerRepository),
|
onTap:() => this.callBackExerciseLog(exerciseRepository, customerRepository),
|
||||||
isLocked: false,
|
isLocked: false,
|
||||||
),
|
),
|
||||||
@ -55,11 +55,11 @@ class _MyDevelopmentPage extends State<MyDevelopmentPage> with Trans {
|
|||||||
ImageButton(
|
ImageButton(
|
||||||
textAlignment: Alignment.topLeft,
|
textAlignment: Alignment.topLeft,
|
||||||
text: t("My Whole Body Development"),
|
text: t("My Whole Body Development"),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/testemfejl400x400.jpg",
|
image: "asset/image/testemfejl400x400.jpg",
|
||||||
top: 150,
|
top: 150,
|
||||||
left: 15,
|
left: 10,
|
||||||
onTap:() => {
|
onTap:() => {
|
||||||
args['customerId'] = Cache().userLoggedIn.customerId,
|
args['customerId'] = Cache().userLoggedIn.customerId,
|
||||||
Navigator.of(context).pushNamed('mydevelopmentBodyPage',
|
Navigator.of(context).pushNamed('mydevelopmentBodyPage',
|
||||||
@ -70,7 +70,7 @@ class _MyDevelopmentPage extends State<MyDevelopmentPage> with Trans {
|
|||||||
ImageButton(
|
ImageButton(
|
||||||
textAlignment: Alignment.topLeft,
|
textAlignment: Alignment.topLeft,
|
||||||
text: t("Development Of Muscles"),
|
text: t("Development Of Muscles"),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/izomcsop400400.jpg",
|
image: "asset/image/izomcsop400400.jpg",
|
||||||
top: 120,
|
top: 120,
|
||||||
@ -85,7 +85,7 @@ class _MyDevelopmentPage extends State<MyDevelopmentPage> with Trans {
|
|||||||
ImageButton(
|
ImageButton(
|
||||||
textAlignment: Alignment.topLeft,
|
textAlignment: Alignment.topLeft,
|
||||||
text: t("Predictions"),
|
text: t("Predictions"),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/menu/2.2.1.1RM.png",
|
image: "asset/menu/2.2.1.1RM.png",
|
||||||
top: 150,
|
top: 150,
|
||||||
|
@ -23,7 +23,7 @@ class _MyExercisePlanPage extends State<MyExercisePlanPage> with Trans {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBarNav(depth: 0),
|
appBar: AppBarNav(depth: 0),
|
||||||
body: Container(
|
body: Container(
|
||||||
padding: EdgeInsets.all(20),
|
padding: EdgeInsets.all(10),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
image: AssetImage('asset/image/WT_menu_dark.png'),
|
image: AssetImage('asset/image/WT_menu_dark.png'),
|
||||||
@ -44,8 +44,8 @@ class _MyExercisePlanPage extends State<MyExercisePlanPage> with Trans {
|
|||||||
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/exercise_plan_execute.jpg",
|
image: "asset/image/exercise_plan_execute.jpg",
|
||||||
top: 150,
|
top: 130,
|
||||||
left: 15,
|
left: 10,
|
||||||
onTap:() => {
|
onTap:() => {
|
||||||
args['customerId'] = Cache().userLoggedIn.customerId,
|
args['customerId'] = Cache().userLoggedIn.customerId,
|
||||||
Navigator.of(context).pushNamed('exerciseExecutePlanPage',
|
Navigator.of(context).pushNamed('exerciseExecutePlanPage',
|
||||||
@ -61,7 +61,7 @@ class _MyExercisePlanPage extends State<MyExercisePlanPage> with Trans {
|
|||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/exercise_plan_custom.jpg",
|
image: "asset/image/exercise_plan_custom.jpg",
|
||||||
top: 150,
|
top: 150,
|
||||||
left: 15,
|
left: 10,
|
||||||
onTap:() => {
|
onTap:() => {
|
||||||
args['exerciseRepository'] = exerciseRepository,
|
args['exerciseRepository'] = exerciseRepository,
|
||||||
args['customerId'] = Cache().userLoggedIn.customerId,
|
args['customerId'] = Cache().userLoggedIn.customerId,
|
||||||
@ -77,7 +77,7 @@ class _MyExercisePlanPage extends State<MyExercisePlanPage> with Trans {
|
|||||||
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/exercise_plan_suggested.jpg",
|
image: "asset/image/exercise_plan_suggested.jpg",
|
||||||
top: 150,
|
top: 130,
|
||||||
left: 10,
|
left: 10,
|
||||||
onTap:() => {
|
onTap:() => {
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ class _MyExercisePlanPage extends State<MyExercisePlanPage> with Trans {
|
|||||||
ImageButton(
|
ImageButton(
|
||||||
textAlignment: Alignment.topLeft,
|
textAlignment: Alignment.topLeft,
|
||||||
text: t("My Special Plan"),
|
text: t("My Special Plan"),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.orange, fontWeight: FontWeight.bold,
|
style: TextStyle(fontSize: 14, color: Colors.orange, fontWeight: FontWeight.bold,
|
||||||
backgroundColor: Colors.black54.withOpacity(0.4)),
|
backgroundColor: Colors.black54.withOpacity(0.4)),
|
||||||
image: "asset/image/exercise_plan_special.jpg",
|
image: "asset/image/exercise_plan_special.jpg",
|
||||||
top: 150,
|
top: 150,
|
||||||
|
@ -63,10 +63,10 @@ class ImageButton extends StatelessWidget {
|
|||||||
)]
|
)]
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
top: top,
|
top: text.length > 20 ? 140 : 160,
|
||||||
left: left,
|
left: left,
|
||||||
child: Container(
|
child: Container(
|
||||||
height: 100,
|
height: 200,
|
||||||
width: 180,
|
width: 180,
|
||||||
child: InkWell(
|
child: InkWell(
|
||||||
onTap: onTap ?? onTap,
|
onTap: onTap ?? onTap,
|
||||||
|
Loading…
Reference in New Issue
Block a user