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

nepali_date_picker 封面
套件詳情v8.0.0

nepali_date_picker

一個可自定義的 Flutter 尼泊爾日期選擇器,支援完整的畢克拉姆曆(Bikram Sambat)日曆與本地化。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1220
喜歡數
93
Pub 分數
160

安裝套件

flutter pub add nepali_date_picker

套件介紹

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

一個可自訂的 Flutter 日期選擇器,支援尼泊爾曆(比克拉姆薩姆巴特曆)並具備完整的在地化功能。它允許使用者使用傳統的尼泊爾日曆系統選擇日期,非常適合針對尼泊爾語使用者的應用程式。此套件可在所有主要平台(包括 Android、iOS、Web、macOS、Windows 和 Linux)上相容使用。它提供乾淨直覺的介面,並支援主題、日期範圍和格式等自訂選項。從在地化角度設計,確保準確顯示尼泊爾月份名稱、星期與日期格式。

適用情境

  • 尼泊爾語應用程式
  • 尼泊爾政府服務
  • 尼泊爾的教育平台
  • 文化活動排程
  • 使用比克拉姆薩姆巴特的金融系統
  • 基於日曆的資料輸入

主要特色

  • 完整的畢克拉姆薩巴特支援
  • 尼泊爾語本地化
  • 可自訂的 UI
  • 跨平台相容性
  • 日期範圍選擇
  • 主題和樣式選項

適合對象

  • 面向尼泊爾用戶的開發者
  • 需要尼泊爾日曆整合的應用程式
  • 尼泊爾的政府或公共服務應用
  • 尼泊爾的教育軟體
  • 文化或宗教活動策劃者

使用建議

  • 需要了解比克拉姆薩姆巴特曆
  • 僅限尼泊爾語和區域
  • 可能需要針對非尼泊爾語內容進行額外本地化
  • 平台特定的渲染可能會略有不同
  • 不適用於非尼泊爾日期系統

原始 README

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

🇳🇵 Nepali Date Picker + Calendar

Pub Package Licence Demo

A customizable, fully localized date picker for Flutter, built for the Nepali (Bikram Sambat) calendar.

Features

  • 🇳🇵 Full Bikram Sambat calendar support, from 1970 BS to 2250 BS
  • 📅 Material, Cupertino, and adaptive picker styles
  • 🎯 Single date and date range selection
  • 🔄 Effortless conversion between Bikram Sambat and Gregorian dates
  • 🎨 Themeable to match your app

Getting Started

dependencies:
  nepali_date_picker: ^<latest_version>
flutter pub get

Usage

import 'package:nepali_date_picker/nepali_date_picker.dart';
Single date
final date = await showNepaliDatePicker(
  context: context,
  initialDate: NepaliDateTime.now(),
  firstDate: NepaliDateTime(1970, 2, 5),
  lastDate: NepaliDateTime(2250, 11, 6),
);
Date range
final range = await showNepaliDateRangePicker(
  context: context,
  firstDate: NepaliDateTime(1970, 2, 5),
  lastDate: NepaliDateTime(2250, 11, 6),
);
Adaptive (Material on Android, Cupertino on iOS)
final date = await showAdaptiveDatePicker(
  context: context,
  initialDate: NepaliDateTime.now(),
  firstDate: NepaliDateTime(1970, 2, 5),
  lastDate: NepaliDateTime(2250, 11, 6),
);

See the example app for a complete integration.

Demo

Try it live at date.sarbagyastha.com.np.

Related Package

Need more Nepali date/text utilities? Check out nepali_utils for date formatting, number conversion, and more — pairs well with this package.

Contributing

Contributions are welcome! Open an issue or submit a pull request.

License

Licensed under the BSD-3 License.

所屬分類

依賴

依賴清單 4 項

原始碼儲存庫

使用此套件的專案