Skip to content
Snippets Groups Projects
Commit 9bab78b1 authored by Benoît Harrault's avatar Benoît Harrault
Browse files

Improve distributions page

parent ad8e7248
No related branches found
No related tags found
1 merge request!44Resolve "Improve distributions page"
Pipeline #4710 passed
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
app.versionName=0.0.44
app.versionCode=44
app.versionName=0.0.45
app.versionCode=45
Improve distribution page.
Améliorations sur page de répartitions.
......@@ -22,11 +22,11 @@ class ScreenStatistics extends StatelessWidget {
physics: const BouncingScrollPhysics(),
children: <Widget>[
const SizedBox(height: 8),
const CardHeatmap(),
const SizedBox(height: 6),
const CardCountsByDay(),
const SizedBox(height: 6),
const CardCountsByHour(),
const SizedBox(height: 6),
const CardHeatmap(),
const SizedBox(height: 36),
],
),
......
......@@ -72,7 +72,7 @@ class ChartHeatmap extends StatelessWidget {
spots.add(ScatterSpot(
hour.toDouble(),
day.toDouble(),
8 - day.toDouble(),
color: getColorFromNormalizedValue(normalizedValue),
radius: scale * normalizedValue,
));
......@@ -115,7 +115,7 @@ class ChartHeatmap extends StatelessWidget {
}
Widget getVerticalTitlesWidget(double value, TitleMeta meta) {
final int day = value.toInt();
final int day = 8 - value.toInt();
String dayShortName = '';
switch (day) {
case 1:
......
......@@ -3,7 +3,7 @@ description: Display scrobbles data and charts
publish_to: 'none'
version: 0.0.44+44
version: 0.0.45+45
environment:
sdk: '^3.0.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment