health_kit_reporter 3.0.0 copy "health_kit_reporter: ^3.0.0" to clipboard
health_kit_reporter: ^3.0.0 copied to clipboard

PlatformiOS

Reads, writes and observes Apple Health data on iOS through HealthKit, wrapping the Swift library HealthKitReporter.

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(0xFFFF2D55), 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: 'HealthKitReporter',
      debugShowCheckedModeBanner: false,
      theme: _theme(Brightness.light),
      darkTheme: _theme(Brightness.dark),
      home: const DemoPage(),
    );
  }
}
60
likes
160
points
12.2k
downloads

Documentation

API reference

Publisher

verified publishervictorkachalov.com

Weekly Downloads

Reads, writes and observes Apple Health data on iOS through HealthKit, wrapping the Swift library HealthKitReporter.

Repository (GitHub)
View/report issues
Contributing

Topics

#health #healthkit #ios #apple-health

License

MIT (license)

Dependencies

flutter

More

Packages that depend on health_kit_reporter

Packages that implement health_kit_reporter