flutter_ios_workouts 0.1.0 copy "flutter_ios_workouts: ^0.1.0" to clipboard
flutter_ios_workouts: ^0.1.0 copied to clipboard

PlatformiOS

Allowing access to workouts from apple health and the recorded routes

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_ios_workouts/flutter_ios_workouts.dart';

import 'workout_list_screen.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await WorkoutsPlugin.setup();

  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Workouts Example',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity
      ),
      home: const WorkoutListScreen(),
    );
  }
}
0
likes
150
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

Allowing access to workouts from apple health and the recorded routes

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_ios_workouts