cupertino_calendar_structre 1.1.1 copy "cupertino_calendar_structre: ^1.1.1" to clipboard
cupertino_calendar_structre: ^1.1.1 copied to clipboard

Specific designed data structre which using in Cupertino Calendar

example/main.dart

import 'package:cupertino_calendar_structre/structre.dart';

void main() {
  // YearMonth demo
  YearMonth ym1 = YearMonth(2021, 2);

  // There are 28 days in Feb 2021
  print("Date in ${ym1.formatString()}: ${ym1.allDaysInMonth.length}");

  // It is greater than January
  print(ym1 > YearMonth(2021, 1));

  FirstDayOfWeek fdow = FirstDayOfWeek.sun;

  // Get placeholder in this month
  print(
      "In ${ym1.formatString()}, it swifted ${fdow.calculatePlaceholderFromStart(ym1)} from begin and ${fdow.calculatePlaceholderFromEnd(ym1)} from end if Sunday is the first day of the week");

  // Date remind section
  Events sampleEvent = Events(
      name: "Sample events",
      from: DateTime(2021, 8, 1, 13, 0, 0),
      to: DateTime(2021, 8, 1, 15, 0, 0));

  print(
      "Event '${sampleEvent.name}' is ongoing: ${sampleEvent.isOngoing(DateTime.now())}");
}
0
likes
120
pub points
3%
popularity

Publisher

verified publisherrk0cc.xyz

Specific designed data structre which using in Cupertino Calendar

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (LICENSE)

Dependencies

intl, quiver

More

Packages that depend on cupertino_calendar_structre