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

The Flutter library provides a wrapper layer to communicate with apps running on WatchOS and WearOS.

example/lib/main.dart

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

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  MyApp({Key? key}) : super(key: key);

  final FlutterWatchOsConnectivity _flutterWatchOsConnectivity =
      FlutterSmartWatch().watchOS;

  final FlutterWearOsConnectivity _flutterWearOsConnectivity =
      FlutterSmartWatch().wearOS;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(),
          body: Center(
            child: Text(
                "WearOS: ${_flutterWearOsConnectivity.isSupported()}\nWatchOS: ${_flutterWatchOsConnectivity.isSupported()}"),
          )),
    );
  }
}
18
likes
160
points
53
downloads

Publisher

verified publishersstonn.xyz

Weekly Downloads

The Flutter library provides a wrapper layer to communicate with apps running on WatchOS and WearOS.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_smart_watch_platform_interface, flutter_watch_os_connectivity, flutter_wear_os_connectivity

More

Packages that depend on flutter_smart_watch