dart_iztro 0.0.1 copy "dart_iztro: ^0.0.1" to clipboard
dart_iztro: ^0.0.1 copied to clipboard

一个支持多平台的紫微斗数和八字计算Flutter插件,支持农历阳历转换。

dart_iztro #

一个支持多平台的紫微斗数和八字计算Flutter插件。提供紫微斗数星盘和八字计算功能,支持农历阳历转换,可用于命理、占卜和星盘分析应用。

声明:本项目代码源自 @SylarLong/iztro,感谢原作者的开源贡献。

功能特点 #

  • 根据阳历日期计算农历日期
  • 计算八字信息
  • 计算紫微斗数星盘信息
  • 提供星盘各宫位的详细信息
  • 支持多平台:Android、iOS、macOS、Windows和Web

安装 #

将以下内容添加到您的 pubspec.yaml 文件中:

dependencies:
  dart_iztro: ^0.0.1

然后运行:

flutter pub get

使用方法 #

import 'package:dart_iztro/dart_iztro.dart';

// 创建实例
final iztro = DartIztro();

// 获取八字信息
final birthData = await iztro.calculateBaZi(
  year: 1990, 
  month: 1, 
  day: 1, 
  hour: 12, 
  minute: 0,
  isLunar: false, // 是否农历
  gender: Gender.male,
);

// 获取紫微斗数星盘
final chart = await iztro.calculateChart(
  year: 1990, 
  month: 1, 
  day: 1, 
  hour: 12, 
  minute: 0,
  isLunar: false, // 是否农历
  gender: Gender.male,
);

// 打印宫位信息
print(chart.palaces);

更多示例 #

更多使用示例请查看 example 文件夹中的示例应用。

许可证 #

本项目采用 MIT 许可证 - 详见 LICENSE 文件

本项目遵循与原项目 @SylarLong/iztro 相同的开源许可证。如有任何版权问题,请联系我们立即处理。

Getting Started #

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

1
likes
0
points
237
downloads

Publisher

unverified uploader

Weekly Downloads

一个支持多平台的紫微斗数和八字计算Flutter插件,支持农历阳历转换。

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_web_plugins, get, lunar, plugin_platform_interface, web

More

Packages that depend on dart_iztro