flutter_watch_face is a Flutter plugin that allows you to add custom watch faces to iOS devices using the ClockKit library and the CLKWatchFaceLibrary
class. This plugin is intended for iOS only and requires a minimum iOS version of 14.0 or higher.
- Easily integrate custom watch faces into your Flutter app for iOS devices.
- Seamlessly interact with the ClockKit library to display watch faces on Apple Watches.
To use flutter_watch_face in your Flutter project, follow these steps:
-
Add the following dependency to your
pubspec.yaml
file:dependencies: flutter_watch_face: ^0.0.1
-
Run flutter pub get to fetch the package.
Import the package in your Dart code:
import 'package:flutter_watch_face/flutter_watch_face.dart';
To add a watch face to an iOS device, you can use the following code:
final _flutterWatchFacePlugin = FlutterWatchFace();
_flutterWatchFacePlugin.addWatchFace(file.path);
Make sure to run this code on an iOS device running iOS 14.0 or higher.
For a complete example of how to use flutter_watch_face, check out the example project provided in this repository.
If you encounter any issues with this plugin or would like to contribute to its development, please visit the GitHub repository. We welcome your feedback and contributions!
This plugin is licensed under the MIT License.