WT 1.1.13+2 double values fix
BIN
asset/menu/chair_pose.jpg
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
asset/menu/hip_lifts.jpg
Normal file
After Width: | Height: | Size: 93 KiB |
BIN
asset/menu/inverse_plank_on_ball.jpg
Normal file
After Width: | Height: | Size: 64 KiB |
BIN
asset/menu/knee_push_ups.jpg
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
asset/menu/leg_raises_with_lifted_hip.jpg
Normal file
After Width: | Height: | Size: 91 KiB |
BIN
asset/menu/opened_side_plank.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
asset/menu/plank_on_ball.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
asset/menu/side_plank.jpg
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
asset/menu/squats_with_kettlebell.jpg
Normal file
After Width: | Height: | Size: 75 KiB |
BIN
asset/menu/warrior_stand.jpg
Normal file
After Width: | Height: | Size: 98 KiB |
@ -388,7 +388,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 2;
|
||||||
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
@ -531,7 +531,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 2;
|
||||||
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
@ -566,7 +566,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
|
||||||
CURRENT_PROJECT_VERSION = 1;
|
CURRENT_PROJECT_VERSION = 2;
|
||||||
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
DEVELOPMENT_TEAM = SFJJBDCU6Z;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
FRAMEWORK_SEARCH_PATHS = (
|
FRAMEWORK_SEARCH_PATHS = (
|
||||||
|
@ -40,7 +40,7 @@ class CustomerBirthYearChange extends CustomerChangeEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class CustomerWeightChange extends CustomerChangeEvent {
|
class CustomerWeightChange extends CustomerChangeEvent {
|
||||||
final int weight;
|
final double weight;
|
||||||
const CustomerWeightChange({required this.weight});
|
const CustomerWeightChange({required this.weight});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
@ -102,7 +102,7 @@ class ExerciseNewBloc extends Bloc<ExerciseNewEvent, ExerciseNewState> with Logg
|
|||||||
yield ExerciseNewReady();
|
yield ExerciseNewReady();
|
||||||
} else if (event is ExerciseNewWeightChange) {
|
} else if (event is ExerciseNewWeightChange) {
|
||||||
yield ExerciseNewLoading();
|
yield ExerciseNewLoading();
|
||||||
customerRepository.setWeight(event.value.toInt());
|
customerRepository.setWeight(event.value);
|
||||||
changedWeight = true;
|
changedWeight = true;
|
||||||
weight = event.value;
|
weight = event.value;
|
||||||
getBMI();
|
getBMI();
|
||||||
|
@ -125,9 +125,9 @@ class CustomerRepository with Logging {
|
|||||||
this.customer!.sex = sex;
|
this.customer!.sex = sex;
|
||||||
}
|
}
|
||||||
|
|
||||||
setWeight(int weight) {
|
setWeight(double weight) {
|
||||||
final propertyName = "Weight";
|
final propertyName = "Weight";
|
||||||
this.setCustomerProperty(propertyName, weight.toDouble());
|
this.setCustomerProperty(propertyName, weight);
|
||||||
}
|
}
|
||||||
|
|
||||||
setHeight(int height) {
|
setHeight(int height) {
|
||||||
|
@ -260,7 +260,7 @@ class CustomerModifyPage extends StatelessWidget with Trans {
|
|||||||
initalValue: customerBloc.weight.toInt(),
|
initalValue: customerBloc.weight.toInt(),
|
||||||
unit: " ",
|
unit: " ",
|
||||||
color: Colors.indigo,
|
color: Colors.indigo,
|
||||||
onChange: (value) => {customerBloc.add(CustomerWeightChange(weight: value.toInt()))}),
|
onChange: (value) => {customerBloc.add(CustomerWeightChange(weight: value))}),
|
||||||
SizedBox(width: 30),
|
SizedBox(width: 30),
|
||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
|
12
pubspec.yaml
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||||
# Read more about iOS versioning at
|
# Read more about iOS versioning at
|
||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
version: 1.1.13+66
|
version: 1.1.13+67
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.12.0 <3.0.0"
|
sdk: ">=2.12.0 <3.0.0"
|
||||||
@ -250,6 +250,7 @@ flutter:
|
|||||||
- asset/menu/cable_flyes.jpg
|
- asset/menu/cable_flyes.jpg
|
||||||
- asset/menu/cable_rows.jpg
|
- asset/menu/cable_rows.jpg
|
||||||
- asset/menu/chair_leg_raises.jpg
|
- asset/menu/chair_leg_raises.jpg
|
||||||
|
- asset/menu/chair_pose.jpg
|
||||||
- asset/menu/chest_press_machine.jpg
|
- asset/menu/chest_press_machine.jpg
|
||||||
- asset/menu/chest_press.jpg
|
- asset/menu/chest_press.jpg
|
||||||
- asset/menu/chins.jpg
|
- asset/menu/chins.jpg
|
||||||
@ -280,6 +281,7 @@ flutter:
|
|||||||
- asset/menu/hammer_curl.jpg
|
- asset/menu/hammer_curl.jpg
|
||||||
- asset/menu/hanging_leg_raises.jpg
|
- asset/menu/hanging_leg_raises.jpg
|
||||||
- asset/menu/head-on-bench_dumbbell_rear_delt_raise.jpg
|
- asset/menu/head-on-bench_dumbbell_rear_delt_raise.jpg
|
||||||
|
- asset/menu/hip_lifts.jpg
|
||||||
- asset/menu/hyperextension.jpg
|
- asset/menu/hyperextension.jpg
|
||||||
- asset/menu/hyperextension_floor.jpg
|
- asset/menu/hyperextension_floor.jpg
|
||||||
- asset/menu/incline_cable_flyes.jpg
|
- asset/menu/incline_cable_flyes.jpg
|
||||||
@ -290,9 +292,12 @@ flutter:
|
|||||||
- asset/menu/incline_press.jpg
|
- asset/menu/incline_press.jpg
|
||||||
- asset/menu/incline_pushups.jpg
|
- asset/menu/incline_pushups.jpg
|
||||||
- asset/menu/incline_triceps_extension.jpg
|
- asset/menu/incline_triceps_extension.jpg
|
||||||
|
- asset/menu/inverse_plank_on_ball.jpg
|
||||||
|
- asset/menu/knee_push_ups.jpg
|
||||||
- asset/menu/leg_abductor.jpg
|
- asset/menu/leg_abductor.jpg
|
||||||
- asset/menu/leg_curls.jpg
|
- asset/menu/leg_curls.jpg
|
||||||
- asset/menu/leg_extension.jpg
|
- asset/menu/leg_extension.jpg
|
||||||
|
- asset/menu/leg_raises_with_lifted_hip.jpg
|
||||||
- asset/menu/legpress.jpg
|
- asset/menu/legpress.jpg
|
||||||
- asset/menu/lower_body_test.jpg
|
- asset/menu/lower_body_test.jpg
|
||||||
- asset/menu/lunges_with_dumbbells.jpg
|
- asset/menu/lunges_with_dumbbells.jpg
|
||||||
@ -310,9 +315,11 @@ flutter:
|
|||||||
- asset/menu/oblique_crunch.jpg
|
- asset/menu/oblique_crunch.jpg
|
||||||
- asset/menu/olympic_squat.jpg
|
- asset/menu/olympic_squat.jpg
|
||||||
- asset/menu/one_arm_row.jpg
|
- asset/menu/one_arm_row.jpg
|
||||||
|
- asset/menu/opened_side_plank.jpg
|
||||||
- asset/menu/overhead_dumbbell_triceps_extension.jpg
|
- asset/menu/overhead_dumbbell_triceps_extension.jpg
|
||||||
- asset/menu/own_body.jpg
|
- asset/menu/own_body.jpg
|
||||||
- asset/menu/peck_deck_flyes.jpg
|
- asset/menu/peck_deck_flyes.jpg
|
||||||
|
- asset/menu/plank_on_ball.jpg
|
||||||
- asset/menu/plank.jpg
|
- asset/menu/plank.jpg
|
||||||
- asset/menu/pull_up.jpg
|
- asset/menu/pull_up.jpg
|
||||||
- asset/menu/pulldown_machine.jpg
|
- asset/menu/pulldown_machine.jpg
|
||||||
@ -330,6 +337,7 @@ flutter:
|
|||||||
- asset/menu/seated_lateral_raises.jpg
|
- asset/menu/seated_lateral_raises.jpg
|
||||||
- asset/menu/seated_triceps_extension.jpg
|
- asset/menu/seated_triceps_extension.jpg
|
||||||
- asset/menu/shrugs.jpg
|
- asset/menu/shrugs.jpg
|
||||||
|
- asset/menu/side_plank.jpg
|
||||||
- asset/menu/side_to_side_chop.jpg
|
- asset/menu/side_to_side_chop.jpg
|
||||||
- asset/menu/single_arm_bent_over_cable_reverse_fly.jpg
|
- asset/menu/single_arm_bent_over_cable_reverse_fly.jpg
|
||||||
- asset/menu/single_arm_t-bar_rows.jpg
|
- asset/menu/single_arm_t-bar_rows.jpg
|
||||||
@ -340,6 +348,7 @@ flutter:
|
|||||||
- asset/menu/situps.jpg
|
- asset/menu/situps.jpg
|
||||||
- asset/menu/sizes.jpg
|
- asset/menu/sizes.jpg
|
||||||
- asset/menu/smith_machine_chest_press.jpg
|
- asset/menu/smith_machine_chest_press.jpg
|
||||||
|
- asset/menu/squats_with_kettlebell.jpg
|
||||||
- asset/menu/squat_jump_weight.jpg
|
- asset/menu/squat_jump_weight.jpg
|
||||||
- asset/menu/squat_jump.jpg
|
- asset/menu/squat_jump.jpg
|
||||||
- asset/menu/squat_without_weight.jpg
|
- asset/menu/squat_without_weight.jpg
|
||||||
@ -369,6 +378,7 @@ flutter:
|
|||||||
- asset/menu/upper_body.jpg
|
- asset/menu/upper_body.jpg
|
||||||
- asset/menu/v_ups.jpg
|
- asset/menu/v_ups.jpg
|
||||||
- asset/menu/wall_sit.jpg
|
- asset/menu/wall_sit.jpg
|
||||||
|
- asset/menu/warrior_stand.jpg
|
||||||
- asset/menu/weight_free_test.jpg
|
- asset/menu/weight_free_test.jpg
|
||||||
- asset/menu/weighted_bench_dip.jpg
|
- asset/menu/weighted_bench_dip.jpg
|
||||||
- asset/menu/wide_grip_behind_the_neck_pull_ups.jpg
|
- asset/menu/wide_grip_behind_the_neck_pull_ups.jpg
|
||||||
|