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

A new Flutter package for showing a Cupertino-styled Hebrew calendar/date picker.

A Flutter plugin for showing a Cupertino-styled Hebrew date picker.

Features #

Image of the package

Usage #

class MyHomePage extends StatelessWidget {
  const MyHomePage({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: TextButton(
          onPressed: () {
            showHebrewCupertinoDatePicker(
                confirmText: "Confirm",
                context: context,

                onDateChanged: (dateTime) {
                  print(dateTime);
                },
                // When the user click on the "Confirm" button, the onConfirm callback is called.
                onConfirm: (dateTime) {
                  print(dateTime);
                });
          },
          child: const Text("open picker"),
        ),
      ),
    );
  }
}

You can also an specify an initial date date to the picker. as well as confirmTextStyle and cancelTextStyle

 showHebrewCupertinoDatePicker(
       
        initialDate: DateTime.now(),
        confirmTextStyle: TextStyle(
        color: CupertinoColors.destructiveRed,
        fontWeight: FontWeight.w600,
        ),
        context: context,
        onDateChanged: (dateTime) {
        print(dateTime);
        },
    
        onConfirm: (dateTime) {
        print(dateTime);
        }
 );

A Hebrew Calendar / Hebrew Date picker

5
likes
140
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

A new Flutter package for showing a Cupertino-styled Hebrew calendar/date picker.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, kosher_dart

More

Packages that depend on cupertino_hebrew_date_picker