WT1.1.5+3 bug fixes

This commit is contained in:
bossanyit 2021-02-02 15:27:46 +01:00
parent c1a57dd10e
commit 366cf7f8a8
12 changed files with 80 additions and 43 deletions

View File

@ -74,7 +74,7 @@ flutter {
} }
dependencies { dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation 'com.google.firebase:firebase-analytics:18.0.0' implementation 'com.google.firebase:firebase-analytics:18.0.0'
implementation 'com.facebook.android:facebook-login:5.15.3' implementation 'com.facebook.android:facebook-login:5.15.3'
implementation 'com.android.support:multidex:1.0.3' implementation 'com.android.support:multidex:1.0.3'

View File

@ -1,5 +1,5 @@
buildscript { buildscript {
ext.kotlin_version = '1.4.10' ext.kotlin_version = '1.4.21'
repositories { repositories {
google() google()
jcenter() jcenter()

View File

@ -256,6 +256,7 @@
"Based on your weight and height your goal for BMI and weight:":"Based on your bodyweight and height your goal for BMI and weight:", "Based on your weight and height your goal for BMI and weight:":"Based on your bodyweight and height your goal for BMI and weight:",
"Body Mass Index":"Body Mass Index", "Body Mass Index":"Body Mass Index",
"first step":"first step", "first step":"first step",
"Step": "Step",
"goal":"goal", "goal":"goal",
"Basal Metabolic Rate":"Basal Metabolic Rate", "Basal Metabolic Rate":"Basal Metabolic Rate",
"Resting Metabolic Rate":"Resting Metabolic Rate", "Resting Metabolic Rate":"Resting Metabolic Rate",
@ -332,5 +333,9 @@
"2 months free":"2 months free", "2 months free":"2 months free",
"Development programs":"Development programs", "Development programs":"Development programs",
"Suggestions based on your actual status":"Suggestions based on your actual status", "Suggestions based on your actual status":"Suggestions based on your actual status",
"Special customized training plans":"Special customized training plans" "Special customized training plans":"Special customized training plans",
"Or type the time manually:":"Or type the time manually",
"sec":"sec",
"min":"min"
} }

View File

@ -328,5 +328,10 @@
"2 months free":"2 hónap ingyen", "2 months free":"2 hónap ingyen",
"Development programs":"Fejlesztési programok", "Development programs":"Fejlesztési programok",
"Suggestions based on your actual status":"Intelligens javaslatok az állapotod alapján", "Suggestions based on your actual status":"Intelligens javaslatok az állapotod alapján",
"Special customized training plans":"Speciális testreszabott edzéstervek" "Special customized training plans":"Speciális testreszabott edzéstervek",
"Step": "Lépés:",
"Or type the time manually:":"Vagy jelöld ki az időt kézzel",
"sec":"mp",
"min":"perc"
} }

View File

@ -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 = 2; CURRENT_PROJECT_VERSION = 3;
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 = 2; CURRENT_PROJECT_VERSION = 3;
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 = 2; CURRENT_PROJECT_VERSION = 3;
DEVELOPMENT_TEAM = SFJJBDCU6Z; DEVELOPMENT_TEAM = SFJJBDCU6Z;
ENABLE_BITCODE = NO; ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (

View File

@ -275,10 +275,37 @@ class _ExerciseControlPage extends State<ExerciseControlPage> with Trans {
title, title,
style: GoogleFonts.inter(color: Colors.yellow[300], fontSize: 18, fontWeight: FontWeight.bold), style: GoogleFonts.inter(color: Colors.yellow[300], fontSize: 18, fontWeight: FontWeight.bold),
), ),
Text( RichText(
text: TextSpan(
style: GoogleFonts.inter(
fontSize: 16,
fontWeight: FontWeight.normal,
color: Colors.yellow[300],
),
children: [
TextSpan(text: t("Please repeat with ")),
TextSpan(
text: exerciseBloc.unitQuantity.toStringAsFixed(0) + " " + exerciseBloc.exerciseRepository.exerciseType.unitQuantityUnit,
style: GoogleFonts.inter(
fontSize: 16,
fontWeight: FontWeight.bold,
color: Colors.yellow[400],
),
),
TextSpan(
text: t("hu_with") +
" " +
strTimes +
" " +
t(
"times!",
))
]),
),
/* Text(
textInstruction, textInstruction,
style: GoogleFonts.inter(color: Colors.yellow[300], fontSize: 16), style: GoogleFonts.inter(color: Colors.yellow[300], fontSize: 16),
), ), */
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [

View File

@ -379,7 +379,7 @@ class _ExerciseNewPageState extends State<ExerciseNewPage> with Trans, Logging {
), ),
Divider(), Divider(),
Divider(), Divider(),
Text("Or type the time manually:", style: GoogleFonts.inter(color: Colors.white)), Text(t("Or type the time manually:"), style: GoogleFonts.inter(color: Colors.white)),
TimePickerWidget( TimePickerWidget(
onChange: (value) => {print("timer"), bloc.add(ExerciseNewQuantityChange(quantity: value))}, onChange: (value) => {print("timer"), bloc.add(ExerciseNewQuantityChange(quantity: value))},
) )

View File

@ -157,24 +157,19 @@ class _AppBarNav extends State<AppBarNav> with SingleTickerProviderStateMixin, C
String text = AppLocalizations.of(context).translate("Make your first test"); String text = AppLocalizations.of(context).translate("Make your first test");
double fontSize = text.length > 24 ? 13 : 16; double fontSize = text.length > 24 ? 13 : 16;
return Stack(alignment: Alignment.topLeft, overflow: Overflow.clip, children: [ return Stack(alignment: Alignment.topLeft, overflow: Overflow.clip, children: [
Text( GestureDetector(
text, onTap: () => progressExplanation(),
style: TextStyle(fontSize: fontSize, color: colorAnim.value, shadows: [Shadow(color: Colors.purple, blurRadius: 15)]), child: Text(
), text,
style: TextStyle(fontSize: fontSize, color: colorAnim.value, shadows: [Shadow(color: Colors.purple, blurRadius: 15)]),
)),
]); ]);
} else { } else {
return Stack( return Stack(
alignment: Alignment.topLeft, alignment: Alignment.topLeft,
children: [ children: [
GestureDetector( GestureDetector(
onTap: () => showDialog( onTap: () => progressExplanation(),
context: context,
builder: (BuildContext context) {
return DialogHTML(
title: AppLocalizations.of(context).translate("Progressindicator for the tests"),
htmlData: AppLocalizations.of(context).translate("Progressindicator_desc"),
);
}),
child: LinearPercentIndicator( child: LinearPercentIndicator(
width: cWidth / 4, width: cWidth / 4,
lineHeight: 14.0, lineHeight: 14.0,
@ -197,4 +192,15 @@ class _AppBarNav extends State<AppBarNav> with SingleTickerProviderStateMixin, C
); );
} }
} }
void progressExplanation() {
showDialog(
context: context,
builder: (BuildContext context) {
return DialogHTML(
title: AppLocalizations.of(context).translate("Progressindicator for the tests"),
htmlData: AppLocalizations.of(context).translate("Progressindicator_desc"),
);
});
}
} }

View File

@ -93,7 +93,7 @@ class _MenuPageWidgetState extends State<MenuPageWidget> with Trans, Logging {
WorkoutMenuTree workoutTree = value; WorkoutMenuTree workoutTree = value;
_columnChildren.add(Container( _columnChildren.add(Container(
padding: EdgeInsets.only(top: 15.0, left: cWidth * 0.04, right: cWidth * 0.04), padding: EdgeInsets.only(top: 15.0, left: cWidth * 0.04, right: cWidth * 0.04),
height: (cHeight / 3) - cWidth * 0.16, //height: (cHeight / 3) - cWidth * 0.16,
child: Badge( child: Badge(
padding: EdgeInsets.all(8), padding: EdgeInsets.all(8),
position: BadgePosition.bottomEnd(end: 0), position: BadgePosition.bottomEnd(end: 0),
@ -144,15 +144,16 @@ class _MenuPageWidgetState extends State<MenuPageWidget> with Trans, Logging {
}); });
} }
//delegate: SliverChildListDelegate(_columnChildren), //delegate: SliverChildListDelegate(_columnChildren),
LiveSliverList sliverList = LiveSliverList( SliverList sliverList = SliverList(
itemCount: _columnChildren.length, //itemCount: _columnChildren.length,
reAnimateOnVisibility: false, //reAnimateOnVisibility: false,
showItemDuration: Duration(milliseconds: 250), //showItemDuration: Duration(milliseconds: 150),
itemBuilder: (BuildContext context, int index, Animation<double> animation) => FadeTransition( //itemBuilder: (BuildContext context, int index, Animation<double> animation) => FadeTransition(
opacity: animation, // opacity: animation,
child: _columnChildren[index], // child: _columnChildren[index],
), //),
controller: scrollController, //controller: scrollController,
delegate: SliverChildListDelegate(_columnChildren),
); );
slivers.add(sliverList); slivers.add(sliverList);

View File

@ -37,10 +37,10 @@ class _TimePickerWidgetState extends State<TimePickerWidget> with Trans {
: 60, : 60,
(index) => Text( (index) => Text(
inSeconds inSeconds
? '$index sec' ? '$index ' + t("sec")
: inHundredths : inHundredths
? index.toString() + ' "' ? index.toString() + ' "'
: '$index min', : '$index ' + t('min'),
style: TextStyle(color: Colors.yellow[200]))), style: TextStyle(color: Colors.yellow[200]))),
itemExtent: 40, itemExtent: 40,
); );

View File

@ -426,13 +426,6 @@ packages:
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "1.0.6" version: "1.0.6"
flutter_fadein:
dependency: "direct main"
description:
name: flutter_fadein
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
flutter_form_bloc: flutter_form_bloc:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -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.5+49 version: 1.1.5+51
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"
@ -62,7 +62,7 @@ dependencies:
apple_sign_in: ^0.1.0 apple_sign_in: ^0.1.0
crypto: ^2.1.5 crypto: ^2.1.5
transparent_image: ^1.0.0 transparent_image: ^1.0.0
flutter_fadein: ^1.1.1 #flutter_fadein: ^1.1.1
auto_animated: ^2.1.0 auto_animated: ^2.1.0
flurry: ^0.0.7 flurry: ^0.0.7