date_cupertino_bottom_sheet_picker 0.0.5 copy "date_cupertino_bottom_sheet_picker: ^0.0.5" to clipboard
date_cupertino_bottom_sheet_picker: ^0.0.5 copied to clipboard

This is a date package in the form of Cupertino and you can set the age limit of your users.

This is a date package in the form of Cupertino and you can set the age limit of your users

Features #

SheetPicker

 Center(
            child: SizedBox(
              width: MediaQuery.of(context).size.width * 0.9,
              child: DateCupertinoBottomSheetPicker(
                minWidth: 1.0,
                firstDate: DateTime(1990),
                lastDate: DateTime.now(),
                selectedDate: selectedDate,
                minAge: 18,
                textFieldDecoration: TextFieldDecoration(),
                onTimeChanged: (dateTime, formattedDate, formattedDateWithDay) {
                  print("dateTime: $dateTime, formattedDate: $formattedDate, formattedDateWithDay: $formattedDateWithDay");
                },
              ),
            ),
          )
copied to clipboard

persian1


 DateCupertinoBottomSheetPicker.dateTimePickerPersian(
      minWidth: 0.9,
       onDateAndTimeChanged: (dateTime, formattedDate, formattedDateWithDay, timeOfDay, timeOfDayString, timeOfDayPersianString) {
        print(
                    "dateTime: $dateTime, formattedDate: $formattedDate, formattedDateWithDay: $formattedDateWithDay, timeOfDay: $timeOfDay, timeOfDayString: $timeOfDayString , timeOfDayPersianString: $timeOfDayPersianString");
},

copied to clipboard

persian


 DateCupertinoBottomSheetPicker.datePickerPersian(
              minWidth: 0.9,
              onChanged: (dateTime, formattedDate, formattedDateWithDay) {
                print("dateTime: $dateTime, formattedDate: $formattedDate, formattedDateWithDay: $formattedDateWithDay");
              },
            ),

copied to clipboard

gregorian1




copied to clipboard

gregorian


  DateCupertinoBottomSheetPicker.dateTimePickerGregorian(
              minWidth: 0.9,
              onTimeChanged: (dateTime, formattedDate, formattedDateWithDay) {
                print("dateTime: $dateTime, formattedDate: $formattedDate, formattedDateWithDay: $formattedDateWithDay");
              },
            )

copied to clipboard

Getting started #

dependencies:
  date_cupertino_bottom_sheet_picker: ^0.0.5
copied to clipboard
import 'package:date_cupertino_bottom_sheet_picker/date_cupertino_bottom_sheet_picker.dart';

copied to clipboard

Example #

to /example folder.

class PickerTest extends StatelessWidget {
  const PickerTest({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    DateTime? selectedDate = DateTime(2010, 12, 5);
    return Scaffold(
      appBar: AppBar(
        title: const Text('PickerTest'),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children: [
          Center(
            child: SizedBox(
              width: MediaQuery.of(context).size.width * 0.9,
              child: DateCupertinoBottomSheetPicker(
                minWidth: 1.0,
                firstDate: DateTime(1990),
                lastDate: DateTime.now(),
                selectedDate: selectedDate,
                minAge: 18,
                textFieldDecoration: TextFieldDecoration(),
                onTimeChanged: (dateTime, formattedDate, formattedDateWithDay) {
                  print("dateTime: $dateTime, formattedDate: $formattedDate, formattedDateWithDay: $formattedDateWithDay");
                },
              ),
            ),
          )
        ],
      ),
    );
  }
}
copied to clipboard

Additional information #

If you have any issues, questions, or suggestions related to this package, please feel free to contact us at swan.dev1993@gmail.com. We welcome your feedback and will do our best to address any problems or provide assistance. For more information about this package, you can also visit our GitHub repository where you can find additional resources, contribute to the package's development, and file issues or bug reports. We appreciate your contributions and feedback, and we aim to make this package as useful as possible for our users. Thank you for using our package, and we look forward to hearing from you!

4
likes
160
points
103
downloads

Publisher

verified publisherswanflutterdev.com

Weekly Downloads

2024.09.24 - 2025.04.08

This is a date package in the form of Cupertino and you can set the age limit of your users.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

fade_animation_delayed, flutter, intl, shamsi_date

More

Packages that depend on date_cupertino_bottom_sheet_picker