mirror of
https://github.com/kuhyx/diet-guard.git
synced 2026-11-20 12:32:27 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
file-length / file length <= 250 lines (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Waiting to run
Tests / test (push) Waiting to run
release-apk / release (APK) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
386 B
Dart
14 lines
386 B
Dart
/// Returns the activity-type icon for [kind].
|
|
library;
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
/// Activity kind icons used by _SessionTile (in `activity_card.dart`).
|
|
IconData kindIcon(String kind) => switch (kind) {
|
|
'run' => Icons.directions_run,
|
|
'walk' => Icons.directions_walk,
|
|
'cycle' => Icons.directions_bike,
|
|
'strength' => Icons.fitness_center,
|
|
_ => Icons.sports,
|
|
};
|