搜尋套件、儲存庫與 APP 分類

套件詳情v0.11.0

device_calendar_plus_ios

device_calendar_plus 插件的 iOS 實作。

iOS
近 30 天下載
3.6萬
喜歡數
2
Pub 分數
150

安裝套件

flutter pub add device_calendar_plus_ios

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

A Flutter plugin providing iOS-specific implementation for the device_calendar_plus package, enabling seamless integration with native iOS calendar functionality. It allows users to read, create, update, and delete calendar events directly on iOS devices, ensuring compatibility with system-level calendar data. The plugin is designed to work in tandem with the core device_calendar_plus package, offering platform-specific optimizations and reliability on iOS. It supports event management with full access to calendar details such as titles, dates, reminders, and recurrence rules. Built by bullet.to, it maintains consistency with cross-platform development practices while leveraging native iOS capabilities.

適用情境

  • Accessing and managing iOS calendar events
  • Syncing app events with the native calendar
  • Creating recurring events on iOS
  • Handling calendar permissions on iOS
  • Integrating calendar features into productivity apps

主要特色

  • Native iOS calendar integration
  • Support for event creation and updates
  • Full access to calendar metadata
  • Platform-specific optimization
  • Seamless coordination with device_calendar_plus

適合對象

  • iOS-focused calendar applications
  • Productivity or scheduling apps
  • Apps requiring native calendar access
  • Developers using device_calendar_plus
  • Cross-platform projects needing iOS support

使用建議

  • Requires iOS 10+
  • Needs proper calendar permission handling
  • Limited to iOS platform
  • Dependent on device_calendar_plus core
  • May require additional configuration for background execution

原始 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.

所屬分類

依賴

原始碼儲存庫

使用此套件的專案

暫無相關資料。

所在榜單