diet-guard/app/lib/services/health_steps_source_web.dart
Krzysztof kuhy Rudnicki e761926df4
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file-length / file length <= 250 lines (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Has been cancelled
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint) (push) Has been cancelled
Tests / test (push) Has been cancelled
release-apk / release (APK) (push) Has been cancelled
Body tab: weight/body-fat logs, BMI, ideal weight, goal-based kcal target, workouts + Health Connect steps, week planner
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-28 09:03:03 +02:00

26 lines
645 B
Dart

/// Web half of `health_steps_source.dart`: no Health Connect in a browser.
library;
import 'package:diet_guard_app/services/health_steps.dart';
/// A source that never reads anything.
StepsSource createStepsSource() => const NoStepsSource();
/// Reports "unsupported" and reads nothing.
class NoStepsSource implements StepsSource {
/// Creates the source.
const NoStepsSource();
@override
bool get supported => false;
@override
Future<bool> hasPermission() async => false;
@override
Future<bool> requestPermission() async => false;
@override
Future<List<StepInterval>> read(DateTime from, DateTime to) async => [];
}