mirror of
https://github.com/wger-project/flutter.git
synced 2026-02-18 00:17:48 +01:00
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:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user