iamvivekkaushik / DatePickerTimelineFlutter

Flutter Date Picker Library that provides a calendar as a horizontal timeline
Apache License 2.0
286 stars 203 forks source link

I add a ScrollBar in flutter but it doesn't work #86

Open Trung15010802 opened 11 months ago

Trung15010802 commented 11 months ago

My code:

SizedBox(
          height: 100,
          width: 500,
          child: Scrollbar(
            controller: _dateScrollController,
            child: DatePicker(
              DateTime(2023, 10, 20),
              initialSelectedDate: DateTime.now(),
              selectionColor: Colors.black,
              locale: 'vi-VN',
              selectedTextColor: Colors.white,
              onDateChange: (date) {
                // New date selected
                setState(() {
                  // _selectedValue = date;
                });
              },
            ),
          ),
        ),

Result: image

Error when scroll using scroll Bar: image