full_calender
풀 캘린더 플러터 라이브러리는 태양력, 음력 및 유리우스 일수 간의 원활한 변환을 가능하게 하며 베트남 음력 시스템에 중점을 둡니다.
이것은 플러터 패키지입니다
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
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';
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.
의존성 목록 4 개
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0^1.24.3사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗