day_picker 패키지는 주간 날짜 선택을 간소화하기 위해 설계된 Flutter 라이브러리입니다. 사용자가 특정 평일을 선택할 수 있도록 깔끔하고 사용자 정의 가능한 위젯을 제공하여 스케줄링, 계획 또는 반복 이벤트 설정에 이상적입니다. 이 패키지는 Android, iOS, Web, macOS, Windows, Linux 등 다양한 플랫폼을 지원하며 장치 간 일관된 동작을 보장합니다. 직관적인 UI 컴포넌트와 pub를 통한 간편한 통합으로 Flutter 앱에서 날짜 관련 상호작용을 향상시킵니다.
사용 사례
반복 이벤트 예약
주간 일정 계획
예약 캘린더 설정
사용자 선호 사항 구성
작업 관리 도구 구축
주요 기능
요일 선택 인터페이스
크로스 플랫폼 호환성
사용자 지정 가능한 UI
pub와의 간편한 통합
모든 주요 Flutter 플랫폼을 지원합니다
적합한 대상
캘린더 기능을 구축하는 앱 개발자
생산성 또는 기획 앱을 만드는 팀
간단한 주중 선택기 필요 개발자
Flutter 초보자가 날짜 선택기 탐색 중
고려 사항
평일 선택만 가능
날짜 범위 지원 없음
월/년 탐색을 포함하지 않습니다
주간 중심 워크플로우에 가장 적합
선택된 날짜 로직을 수동으로 처리해야 합니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Day Picker
A Flutter widget library which helps us to select days in a week.
DayInWeek consist of three Properties [dayName], [dayKey] and [isSelected].
By default [isSelected] value will be false
Example:
voidhandleOnSelect(List<String> days){
//TODO: Manipulate the List of days selectedprint(days);
}
Customization
Property
Type
Description
onSelect
List<String>
Callback invoked when days are selected
days
List<DayInWeek>
List of days that need to be passed
padding
double
Padding between container and the buttons [by default it is 8.0]
boxdecoration
BoxDecoration
provides variety of ways to style the background container[gradient, color, border radius]
backgroundColor
Color
Property to change the color of the container
fontSize
double
Property to change size of font
fontWeight
FontWeight
Property to change the font weight of text
daysFillColor
Color
Property to change the color of rounded buttons when the days are selected
daysBorderColor
Color
Property to change the border color of rounded button
selectedDayTextColor
Color
property to change the text color of the selected days
unSelectedDayTextColor
Color
property to change the text color when the days are not selected
border
bool
Set this property to false if border is not needed around the rounded buttons[by default this property will be true]
With the implementation of the setDaysState method, developers can dynamically modify which days are selected within their application's code, even after the SelectWeekDays widget has already been constructed.
By utilizing the Global Key that is passed into the widget, one can easily update the selected dates as desired.
Contributions
Contributions of any kind are more than welcome😊! Feel free to fork and improve day_picker or open an issue.