WT1.1.2e error fixes

This commit is contained in:
bossanyit
2020-10-29 15:21:24 +01:00
parent 7f8eabfb0e
commit 8f651ceb0d
27 changed files with 142 additions and 880 deletions
+1
View File
@@ -111,6 +111,7 @@ class _AppBarNav extends State<AppBarNav> with SingleTickerProviderStateMixin,
double cWidth = mediaSizeWidth(context);
double percent = Cache().getPercentExercises();
if ( percent == -1) {
menuBloc.menuTreeRepository.createTree();
ExerciseRepository exerciseRepository = ExerciseRepository();
exerciseRepository.getBaseExerciseFinishedPercent();
percent = Cache().getPercentExercises();
+1 -1
View File
@@ -37,7 +37,7 @@ class ImageButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
double top = width - (style.fontSize - 5) * text.length < 0 ? width - 2 * style.fontSize - 10 : width - style.fontSize - 10;
double top = width - (style.fontSize - 5) * text.length - 2 * left < 0 ? width - 2 * style.fontSize - 10 : width - style.fontSize - 10;
print ("Top: " + top.toStringAsFixed(0) + " length: " + ((style.fontSize - 5) * text.length).toString());
return Stack(
//alignment: textAlignment,
+13 -10
View File
@@ -43,7 +43,7 @@ class MenuInfoWidget extends StatelessWidget with Common {
@override
Widget build(BuildContext context) {
int length = title.length + text2.length + text3.length + link.length;
return Container(
return /* Container(
height: length > 100? 350 : 250,
width: 180,
padding: EdgeInsets.all(25.0),
@@ -56,7 +56,7 @@ class MenuInfoWidget extends StatelessWidget with Common {
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 9, sigmaY: 9),
child: Container(
child:*/ Container(
padding: EdgeInsets.only(top: 10.0, left: 15, right: 10, bottom: 5),
decoration: BoxDecoration(
@@ -65,37 +65,40 @@ class MenuInfoWidget extends StatelessWidget with Common {
borderRadius: BorderRadius.all(Radius.circular(10.0)),
),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
title,
maxLines: 1,
maxLines: 4,
textAlign: TextAlign.center,
style:
TextStyle(color: titleColor, fontSize: titleSize, fontFamily: 'Arial', fontWeight: titleWeight),
TextStyle(color: titleColor, fontSize: titleSize, fontWeight: titleWeight),
),
Divider(),
Text(
text,
maxLines: 6,
style: TextStyle(color: textColor, fontSize: textSize, fontFamily: 'Arial', fontWeight: textWeight),
style: TextStyle(color: textColor, fontSize: textSize, fontWeight: textWeight),
),
Divider(),
Text(
text2,
maxLines: 6,
style: TextStyle(color: textColor, fontSize: textSize, fontFamily: 'Arial', fontWeight: textWeight),
style: TextStyle(color: textColor, fontSize: textSize, fontWeight: textWeight),
),
Divider(),
Text(
text3,
maxLines: 6,
style: TextStyle(color: textColor, fontSize: textSize, fontFamily: 'Arial', fontWeight: textWeight),
style: TextStyle(color: textColor, fontSize: textSize, fontWeight: textWeight),
),
getLink(),
],
),
),
));
//),
// )
);
}
Widget getLink() {