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

nepali_date_picker 封面
插件详情v8.0.0

nepali_date_picker

一个可自定义的 Flutter 尼泊尔日期选择器,支持完整的毕克拉姆历(Bikram Sambat)日历和本地化。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
1300
喜欢数
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 项

源码仓库

使用此插件的项目