搜索插件、代码仓与 APP 分类

插件详情v0.11.0

device_calendar_plus_ios

device_calendar_plus 插件的 iOS 实现。

iOS
近 30 天下载
5万
喜欢数
2
Pub 分数
150

安装插件

flutter pub add device_calendar_plus_ios

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

一个 Flutter 插件,为 device_calendar_plus 包提供 iOS 特定的实现,可无缝集成原生 iOS 日历功能。该插件允许用户在 iOS 设备上直接读取、创建、更新和删除日历事件,确保与系统级日历数据的兼容性。该插件专为与核心 device_calendar_plus 包协同工作而设计,提供平台特定的优化和在 iOS 上的可靠性。支持完整的事件管理功能,可全面访问日历详情,包括标题、日期、提醒和重复规则。由 bullet.to 开发,保持与跨平台开发实践的一致性,同时充分利用原生 iOS 功能。

适合场景

  • 访问和管理 iOS 日历事件
  • 将应用事件与原生日历同步
  • 在 iOS 上创建重复事件
  • 处理 iOS 上的日历权限
  • 将日历功能集成到生产力应用中

主要特点

  • 原生 iOS 日历集成
  • 支持事件创建和更新
  • 对日历元数据的完整访问权限
  • 平台特定优化
  • 与 device_calendar_plus 的无缝协调

适合对象

  • 面向 iOS 的日历应用
  • 生产力或日程安排应用
  • 需要原生日历访问权限的应用
  • 使用 device_calendar_plus 的开发者
  • 需要 iOS 支持的跨平台项目

使用建议

  • 需要 iOS 10 或更高版本
  • 需要妥善处理日历权限
  • 仅限 iOS 平台
  • 依赖于 device_calendar_plus 核心
  • 可能需要额外配置以支持后台执行

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

device_calendar_plus

A modern, federated Flutter plugin for reading and writing device calendar events on Android and iOS.

Note: This is the developer/contributor documentation. For plugin usage and API documentation, see the device_calendar_plus package README.

🏗️ Architecture

This is a federated plugin following Flutter's federated plugin architecture:

device_calendar_plus/
├── packages/
│   ├── device_calendar_plus/              # Main package (public API)
│   ├── device_calendar_plus_platform_interface/  # Platform interface
│   ├── device_calendar_plus_android/      # Android implementation
│   └── device_calendar_plus_ios/          # iOS implementation
└── example/                                # Example app & integration tests
Package Structure
  • device_calendar_plus: The main package that app developers depend on. Contains the public Dart API and exports platform interface types.

  • device_calendar_plus_platform_interface: Defines the interface that platform implementations must follow. Contains method signatures and data contracts.

  • device_calendar_plus_android: Android-specific implementation using Kotlin and the Android Calendar Provider API.

  • device_calendar_plus_ios: iOS-specific implementation using Swift and EventKit.

  • example/: Example app demonstrating plugin usage, also contains integration tests.

🚀 Getting Started

Prerequisites
  • Flutter SDK (latest stable)
  • For iOS development: Xcode 15+
  • For Android development: Android Studio with Android SDK 24+

Optional (but recommended):

  • Very Good CLI: dart pub global activate very_good_cli - Makes running tests faster with optimized configuration
Setup
  1. Clone the repository:
git clone https://github.com/yourusername/device_calendar_plus.git
cd device_calendar_plus
  1. Install dependencies:
flutter pub get

This project uses Dart workspaces, so a single flutter pub get at the root will install dependencies for all packages.

🧪 Testing

Unit Tests

Run all unit tests across all packages using Very Good CLI (recommended):

very_good test --recursive

This will run tests in all /packages/*/test/ directories with optimized configuration.

Integration Tests

Integration tests are located in example/integration_test/ and test the plugin against real platform APIs.

Running on a Device/Emulator

From the example directory:

cd example
./run_integration_tests.sh <device-id>

Get the device ID from:

flutter devices
Platform-Specific Notes

iOS:

  • Requires a simulator or physical device
  • Calendar permissions will be requested during tests
  • Tests create temporary calendars that are cleaned up

Android:

  • Requires an emulator or physical device with API 24+
  • Calendar permissions will be requested during tests
  • Tests create temporary calendars that are cleaned up

🤝 Contributing

This project is closed to outside pull requests. Bug reports and feature requests are welcome - please open an issue. See CONTRIBUTING.md for the design philosophy and conventions.

📄 License

MIT © 2025 Bullet

See LICENSE for details.


Maintained by Bullet — a cross-platform task + notes + calendar app built with Flutter.

所属分类

依赖

源码仓库

使用此插件的项目

暂无相关数据。

所在榜单