kosher_dart 2.0.1 copy "kosher_dart: ^2.0.1" to clipboard
kosher_dart: ^2.0.1 copied to clipboard

outdated

This Plugin for a specialized calendar that can calculate different astronomical times for Jewish zmanim or religious times for prayers and other Jewish religious duties.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:intl/intl.dart';
import 'package:kosher_dart/hebrewcalendar/jewish_date.dart';
import 'package:kosher_dart/hebrewcalendar/jewish_calendar.dart';
import 'package:kosher_dart/hebrewcalendar/hebrew_date_formatter.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  JewishDate jewishDate = JewishDate();
  JewishCalendar jewishCalendar = JewishCalendar();
  HebrewDateFormatter hebrewDateFormatter = HebrewDateFormatter();

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Kosher Dart'),
        ),
        body: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Center(
              child: Text(' תאריך לעוזי: ' + DateFormat("dd.MM.yyyy").format(jewishDate.getGregorianCalendar())),
            ),
            Center(
              child: Text('תאריך עברי: ' + hebrewDateFormatter.format(jewishDate)),
            ),
            Center(
              child: Text('פרשת השבוע: ' + hebrewDateFormatter.formatWeeklyParsha(jewishCalendar)),
            ),
          ],
        ),
      ),
    );
  }

  @override
  void initState() {
    hebrewDateFormatter.setHebrewFormat(true);
    hebrewDateFormatter.setUseGershGershayim(true);
    super.initState();
  }
}
21
likes
0
pub points
75%
popularity

Publisher

verified publisherbeninsapps.com

This Plugin for a specialized calendar that can calculate different astronomical times for Jewish zmanim or religious times for prayers and other Jewish religious duties.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_localizations, intl, vector_math

More

Packages that depend on kosher_dart