health_connect_reporter 1.0.0 copy "health_connect_reporter: ^1.0.0" to clipboard
health_connect_reporter: ^1.0.0 copied to clipboard

PlatformAndroid

Reads, writes and observes Android Health Connect data, wrapping the Kotlin library HealthConnectReporter.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'demo/demo_page.dart';

void main() => runApp(const ExampleApp());

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  static ThemeData _theme(Brightness brightness) {
    final colors = ColorScheme.fromSeed(
      seedColor: const Color(0xFF1A73E8),
      brightness: brightness,
    );
    return ThemeData(
      useMaterial3: true,
      colorScheme: colors,
      scaffoldBackgroundColor: colors.surfaceContainerLowest,
      cardTheme: CardThemeData(
        elevation: 0,
        color: colors.surfaceContainerLow,
        margin: EdgeInsets.zero,
        shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(20)),
      ),
      chipTheme: ChipThemeData(
        shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12)),
      ),
      inputDecorationTheme: InputDecorationTheme(
        filled: true,
        fillColor: colors.surfaceContainerHigh,
        border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(16),
          borderSide: BorderSide.none,
        ),
      ),
    );
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'HealthConnectReporter',
      debugShowCheckedModeBanner: false,
      theme: _theme(Brightness.light),
      darkTheme: _theme(Brightness.dark),
      home: const DemoPage(),
    );
  }
}
0
likes
160
points
84
downloads

Documentation

API reference

Publisher

verified publishervictorkachalov.com

Weekly Downloads

Reads, writes and observes Android Health Connect data, wrapping the Kotlin library HealthConnectReporter.

Repository (GitHub)
View/report issues
Contributing

Topics

#health #health-connect #android #fitness

License

MIT (license)

Dependencies

flutter

More

Packages that depend on health_connect_reporter

Packages that implement health_connect_reporter