-
Hello, how can i unselectable date before today. |
Beta Was this translation helpful? Give feedback.
Answered by
Pante
Jul 18, 2025
Replies: 2 comments 1 reply
-
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Trip Dates"),
SizedBox(height: 10),
Row(
spacing: 10,
children: [
Expanded(child: FTextField(
controller: _checkInController,
enabled: false
)),
Expanded(child: FTextField(
controller: _checkOutController,
enabled: false
)),
],
),
SizedBox(height: 10),
Center(
child: FCalendar(
controller: FCalendarController.range(
selectable: (date) => DateTime.now().isBefore(date),
),
),
),
]) I want to show dates like checkin date and checkout date in textfield how can i do that? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming this is part of a stateful widget, you need to:
FCalendarController.value
.FTextField
through_checkInController
&_checkoutController