-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Hey, I really love your date picker but the default value is not working. There is no date selected even if I specified a default value. This is my code:
CoolDatepicker( onSelected: widget.onSelected, maxYear: 2222, minYear: 2019, calendarSize: 350, firstWeekDay: 1, format: 'dd.mm.yyyy', defaultValue: [DateTime.now()], monthLabelList: const [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember', ], isYearMonthDropdownReverse: true, isResultLabel: true, resultWidth: 300, resultBD: BoxDecoration( color: Theme.of(context).colorScheme.background, border: Border( bottom: BorderSide( color: Theme.of(context).colorScheme.secondary, ), ), ), resultTS: TextStyle( fontSize: 20, color: Theme.of(context).colorScheme.onSecondary, ), placeholder: s.lblDate, headerColor: Theme.of(context).colorScheme.secondary, arrowIconAreaColor: Theme.of(context).colorScheme.secondary, selectedCircleColor: Theme.of(context).colorScheme.secondary, selectedBetweenAreaColor: Theme.of(context).colorScheme.secondary, cancelFontColor: Theme.of(context).colorScheme.secondary, cancelBtnLabel: 'Abbrechen', okButtonColor: LinearGradient(colors: [ Theme.of(context).colorScheme.secondary, Theme.of(context).colorScheme.secondary, ]), bottomSelectedBorderColor: Theme.of(context).colorScheme.secondary, isDark: true, )
Did I do something wrong?