• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wger-project / flutter / 30854254088

03 Aug 2026 09:21PM UTC coverage: 40.895% (-15.0%) from 55.93%
30854254088

Pull #1260

github

web-flow
Merge d93794de5 into e3affdd4f
Pull Request #1260: WIP: health sync

9980 of 24404 relevant lines covered (40.89%)

1.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/lib/core/colors.dart
1
import 'package:flutter/material.dart';
2

3
const LIST_OF_COLORS8 = [
4
  Color(0xFF2A4C7D),
5
  Color(0xFF5B5291),
6
  Color(0xFF8E5298),
7
  Color(0xFFBF5092),
8
  Color(0xFFE7537E),
9
  Color(0xFFFF6461),
10
  Color(0xFFFF813D),
11
  Color(0xFFFFA600),
12
];
13

14
const LIST_OF_COLORS5 = [
15
  Color(0xFF2A4C7D),
16
  Color(0xFF825298),
17
  Color(0xFFD45089),
18
  Color(0xFFFF6A59),
19
  Color(0xFFFFA600),
20
];
21

22
const LIST_OF_COLORS3 = [
23
  Color(0xFF2A4C7D),
24
  Color(0xFFD45089),
25
  Color(0xFFFFA600),
26
];
27

28
const COLOR_SURPLUS = Color.fromARGB(255, 231, 71, 71);
29

30
Iterable<Color> generateChartColors(int nrOfItems) sync* {
2✔
31
  final List<Color> colors;
32

33
  if (nrOfItems <= 3) {
2✔
34
    colors = LIST_OF_COLORS3;
35
  } else if (nrOfItems <= 5) {
×
36
    colors = LIST_OF_COLORS5;
37
  } else {
38
    colors = LIST_OF_COLORS8;
39
  }
40

41
  for (final color in colors) {
4✔
42
    yield color;
43
  }
44

45
  // Always return black after generating nrOfItems colors
46
  while (true) {
47
    yield Colors.black;
48
  }
49
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc