date_cupertino_bottom_sheet_picker

Creator: coderz1093

Last updated:

0 purchases

date_cupertino_bottom_sheet_picker Image
date_cupertino_bottom_sheet_picker Images

Languages

Categories

Add to Cart

Description:

date cupertino bottom sheet picker

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

Getting started #
dependencies:
date_cupertino_bottom_sheet_picker: ^0.0.4
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(
width: 1.0, // Changed width 0 to 1.0
firstDate: DateTime(1950),
lastDate: DateTime.now(),
selectedDate: controller.selectedDate,
labelText: 'Date of birth...',
labelTaxtColor: Colors.white,
hintColor: Colors.white,
iconColor: Colors.white,
minAge: 12,
height: 26,
paddingVertical: 0,
borderRadius: 8.0,
cursorColor: Colors.white,
style: const TextStyle(color: Colors.white),
borderColor: Colors.white,
focusedBorderColor: Colors.white,
enabledBorderColor: Colors.white,
onChanged: (dateTime) {
controller.selectedDate = dateTime;
controller.dateBirth.text = dateTime.toString();
debugPrint("Date of birth: $dateTime");
debugPrint(controller.dateBirth.text);
},
),
),
)
],
),
);
}
}
copied to clipboard
Additional information #
If you have any issues, questions, or suggestions related to this package, please feel free to contact us at [email protected]. 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!

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.