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

套件詳情v1.2.86

full_calender

完整日曆Flutter程式庫可輕鬆轉換陽曆、陰曆與儒略日,專注於越南陰曆系統。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
195
喜歡數
47
Pub 分數
160

安裝套件

flutter pub add full_calender

套件介紹

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

Full Calendar Flutter 庫可實現公曆、農曆和儒略曆之間的平滑轉換,並專門支援越南農曆日曆系統。它提供精確的日期計算,非常適合需要特定文化日曆功能的應用程式。該庫可在所有主要平台相容,包括 Android、iOS、Web、macOS、Windows 和 Linux,是國際化應用程式的多用途選擇。透過 Flutter Pub 集成簡單,確保快速設定與可靠效能。

適用情境

  • 越南文化活動策劃
  • 農曆節日日期計算
  • 基於日曆的提醒系統
  • 國際日期轉換
  • 歷史日期分析
  • 應用中的多日曆顯示

主要特色

  • 越南農曆日曆支援
  • 日月-Julian 轉換
  • 跨平台相容性
  • 精確的日期運算
  • 輕鬆整合 Flutter Pub
  • 對歷史與未來日期的支援

適合對象

  • 面向越南用戶的App
  • 文化或宗教活動策劃者
  • 具有日曆功能的教育工具
  • 國際日期轉換工具
  • 需要月曆邏輯的開發者

使用建議

  • 限於太陽/月亮/儒略系統
  • 無內建 UI 元件
  • 需要手動處理日曆顯示
  • 依賴於準確的輸入日期
  • 未針對高頻率更新進行優化
  • 僅支援越語上下文的本地化

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

💰 Sponsor for my work:
  • Momo: Tài trợ qua MoMo

Full Calendar Flutter Library

Welcome to the Full Calendar Library! This library provides a comprehensive set of tools for working with lunar dates, stems, branches, and more, making it easy to integrate traditional calendar features into your Flutter applications.

Features

  • Lunar Date Conversion: Easily convert between solar and lunar dates.
  • Number of Julian day Conversion: Easily convert solar and lunar dates to number of Julian day.
  • Stems and Branches: Retrieve stems and branches for years, months, days, and hours.
  • Multilingual Support: Get names and representations in various languages.
  • Lucky Day and Hour Detection: Find out if a day or hour is considered lucky based on lunar calendar principles.

Getting Started

To use this library, add the following dependency to your pubspec.yaml file:

dependencies:
  full_calender: 

Then run:

$ flutter pub get

Import the library in your Dart code:

import 'package:full_calender/full_calender.dart';

Usage

Lunar Date Conversion

// Convert lunar date to solar date
final lunarDate = LunarDateTime(year: 2023, month: 11, day: 10);
final solarDate = FullCalenderExtension.convertLunarDateToSolarDate(lunarDate);
print(solarDate); // Output: 2023-12-28

Stems and Branches

// Get stem and branch for a specific year
final stemBranchOfYear = StemBranch.year(2023);
print(stemBranchOfYear.name(LanguageName.vietNam)); // Output: Kỷ Hợi

Lucky Day and Hour Detection

// Check if a specific day is considered lucky
final luckyDay = FullCalender(date: DateTime(2023, 12, 28)).lunarDate.isLuckyDay;
print(luckyDay); // Output: true

// Get a list of lucky hours for a specific date
final luckyHours = FullCalender(date: DateTime(2023, 11, 20)).lunarDate.listLuckyHours;
print(luckyHours); // Output: [true, true,false,true,false,false,true,false,true,true,false,false]

Stems and Branches

// Get stem and branch for a specific year
final stemBranchOfYear = StemBranch.year(2023);
print(stemBranchOfYear.name(LanguageName.vietNam)); // Output: Kỷ Hợi

For more examples, check out the example directory.

Issues and Feedback Please file issues or provide feedback on our GitHub repository.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。