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
+18 -12
View File
@@ -157,24 +157,19 @@ class _AppBarNav extends State<AppBarNav> with SingleTickerProviderStateMixin, C
String text = AppLocalizations.of(context).translate("Make your first test");
double fontSize = text.length > 24 ? 13 : 16;
return Stack(alignment: Alignment.topLeft, overflow: Overflow.clip, children: [
Text(
text,
style: TextStyle(fontSize: fontSize, color: colorAnim.value, shadows: [Shadow(color: Colors.purple, blurRadius: 15)]),
),
GestureDetector(
onTap: () => progressExplanation(),
child: Text(
text,
style: TextStyle(fontSize: fontSize, color: colorAnim.value, shadows: [Shadow(color: Colors.purple, blurRadius: 15)]),
)),
]);
} else {
return Stack(
alignment: Alignment.topLeft,
children: [
GestureDetector(
onTap: () => showDialog(
context: context,
builder: (BuildContext context) {
return DialogHTML(
title: AppLocalizations.of(context).translate("Progressindicator for the tests"),
htmlData: AppLocalizations.of(context).translate("Progressindicator_desc"),
);
}),
onTap: () => progressExplanation(),
child: LinearPercentIndicator(
width: cWidth / 4,
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"),
);
});
}
}
+11 -10
View File
@@ -93,7 +93,7 @@ class _MenuPageWidgetState extends State<MenuPageWidget> with Trans, Logging {
WorkoutMenuTree workoutTree = value;
_columnChildren.add(Container(
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(
padding: EdgeInsets.all(8),
position: BadgePosition.bottomEnd(end: 0),
@@ -144,15 +144,16 @@ class _MenuPageWidgetState extends State<MenuPageWidget> with Trans, Logging {
});
}
//delegate: SliverChildListDelegate(_columnChildren),
LiveSliverList sliverList = LiveSliverList(
itemCount: _columnChildren.length,
reAnimateOnVisibility: false,
showItemDuration: Duration(milliseconds: 250),
itemBuilder: (BuildContext context, int index, Animation<double> animation) => FadeTransition(
opacity: animation,
child: _columnChildren[index],
),
controller: scrollController,
SliverList sliverList = SliverList(
//itemCount: _columnChildren.length,
//reAnimateOnVisibility: false,
//showItemDuration: Duration(milliseconds: 150),
//itemBuilder: (BuildContext context, int index, Animation<double> animation) => FadeTransition(
// opacity: animation,
// child: _columnChildren[index],
//),
//controller: scrollController,
delegate: SliverChildListDelegate(_columnChildren),
);
slivers.add(sliverList);
+2 -2
View File
@@ -37,10 +37,10 @@ class _TimePickerWidgetState extends State<TimePickerWidget> with Trans {
: 60,
(index) => Text(
inSeconds
? '$index sec'
? '$index ' + t("sec")
: inHundredths
? index.toString() + ' "'
: '$index min',
: '$index ' + t('min'),
style: TextStyle(color: Colors.yellow[200]))),
itemExtent: 40,
);