overhaul macros viewing

* fix macros alignments across different UI elements, by relying on
  a new standardized NutritionTile
* honor true needed widths based on string lengths of the column names
* show total macros for meal
This commit is contained in:
Dieter Plaetinck
2024-06-10 14:13:02 +03:00
parent d2ac12bee4
commit fb7be3c8a3
9 changed files with 266 additions and 153 deletions

View File

@@ -21,10 +21,12 @@ import 'package:flutter/material.dart';
class MutedText extends StatelessWidget {
final String _text;
final TextAlign textAlign;
final TextOverflow? overflow;
const MutedText(
this._text, {
this.textAlign = TextAlign.left,
this.overflow,
});
@override
@@ -33,6 +35,7 @@ class MutedText extends StatelessWidget {
_text,
style: TextStyle(color: Theme.of(context).colorScheme.outline),
textAlign: textAlign,
overflow: overflow,
);
}
}