Commit 7ab4945

derdilla <derdilla06@gmail.com>
2023-09-12 16:23:01
add measurement color to list
1 parent a72258b
Changed files (1)
lib
components
lib/components/measurement_list/measurement_list_entry.dart
@@ -21,6 +21,8 @@ class MeasurementListRow extends StatelessWidget {
           // Leading color possible
           title: buildRow(formatter),
           childrenPadding: const EdgeInsets.only(bottom: 10),
+          backgroundColor: record.needlePin?.color.withAlpha(30),
+          collapsedShape: record.needlePin != null ? Border(left: BorderSide(color: record.needlePin!.color, width: 8)) : null,
           children: [
             ListTile(
               subtitle: Text(formatter.format(record.creationTime)),
@@ -53,7 +55,7 @@ class MeasurementListRow extends StatelessWidget {
   }
 
   Row buildRow(DateFormat formatter) {
-    return Row(
+    return Row( // FIXME: null texts
       children: [
         Expanded(
           flex: 3,