age_calculator_helper 1.0.1 copy "age_calculator_helper: ^1.0.1" to clipboard
age_calculator_helper: ^1.0.1 copied to clipboard

A Dart package to calculate age, zodiac, milestones, and more.

πŸš€ Here’s a polished README for age_calculator_helper, ready for pub.dev with badges and links:


age_calculator_helper #

Pub Version License: MIT

A Dart package to calculate age, time to next birthday, Indian zodiac sign, milestones, and date differences.

This package helps you easily compute age-related details and perform date calculations in Dart apps.


✨ Features #

βœ… Calculate precise age in years, months, and days βœ… Find time remaining until the next birthday βœ… Get Indian zodiac sign based on date of birth βœ… Compute difference between two dates βœ… Add a duration (years, months, days) to a date βœ… Suggest age-related milestones


πŸš€ Getting started #

Add to your pubspec.yaml:

dependencies:
  age_calculator_helper: ^1.0.0

Import the package:

import 'package:age_calculator_helper/age_calculator_helper.dart';

πŸ“ Usage #

void main() {
  final helper = AgeCalculatorHelper(DateTime(1997, 3, 5));

  print('Age: ${helper.getAge()}');
  print('Next birthday: ${helper.timeToNextBirthday()}');
  print('Indian Zodiac: ${helper.getIndianZodiac()}');
  print('Milestones: ${helper.getMilestones()}');

  final diff = helper.dateDifference(
    fromDate: DateTime(2021, 1, 1),
    toDate: DateTime(2025, 5, 1),
  );
  print('Date difference: $diff');

  final futureDate = helper.addToDate(
    date: DateTime(2021, 1, 1),
    duration: DateDuration(years: 5, months: 2, days: 10),
  );
  print('Future date: $futureDate');
}

➑ More examples in the /example folder.


πŸ“š Additional information #

πŸ”— Repository: https://github.com/SaranGreenz/age_calculator_helper πŸ› Issue tracker: https://github.com/SaranGreenz/age_calculator_helper/issues

πŸ’‘ Contributions, feature requests, and bug reports are welcome!

2
likes
145
points
40
downloads

Documentation

API reference

Publisher

verified publishersarankumarrs.in

Weekly Downloads

A Dart package to calculate age, zodiac, milestones, and more.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on age_calculator_helper