@@ -9,7 +9,6 @@ import "../../../utilities/util.dart";
99import "../../../widgets/date_picker/date_picker.dart" ;
1010import "../../../widgets/textfields/adaptive_text_field.dart" ;
1111import "shopinbit_country_picker.dart" ;
12- import "shopinbit_labeled_checkbox.dart" ;
1312import "shopinbit_privacy_checkbox.dart" ;
1413import "shopinbit_step4_dropdown.dart" ;
1514import "shopinbit_step4_header.dart" ;
@@ -99,7 +98,6 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
9998 String ? _selectedFlexibility;
10099 String ? _selectedYear;
101100 String ? _selectedMonthSeason;
102- bool _needsRecommendations = false ;
103101
104102 int _adults = 1 ;
105103 int _children = 0 ;
@@ -167,8 +165,7 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
167165 _minArrangementDetailsLength &&
168166 _selectedDepartureCountryIso != null &&
169167 _departureCityController.text.trim ().isNotEmpty &&
170- (_needsRecommendations ||
171- _destinationsController.text.trim ().isNotEmpty) &&
168+ _destinationsController.text.trim ().isNotEmpty &&
172169 _selectedDateMode != null &&
173170 _hasValidDates &&
174171 _adults >= 1 &&
@@ -190,11 +187,7 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
190187 "${_selectedDepartureCountryIso !}" ,
191188 ];
192189
193- if (_needsRecommendations) {
194- parts.add ("Destinations: Recommendations requested" );
195- } else {
196- parts.add ("Destinations: ${_destinationsController .text .trim ()}" );
197- }
190+ parts.add ("Destinations: ${_destinationsController .text .trim ()}" );
198191
199192 if (_selectedDateMode == _exactDates) {
200193 final String flex =
@@ -266,10 +259,8 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
266259 : null ;
267260
268261 final String ? destinationsError =
269- _destinationsTouched &&
270- ! _needsRecommendations &&
271- _destinationsController.text.trim ().isEmpty
272- ? "Required (or check 'I need recommendations')"
262+ _destinationsTouched && _destinationsController.text.trim ().isEmpty
263+ ? "Required"
273264 : null ;
274265
275266 final String ? tripLengthError =
@@ -346,19 +337,11 @@ class _ShopInBitTravelFormState extends ConsumerState<ShopInBitTravelForm> {
346337 controller: _destinationsController,
347338 focusNode: _destinationsFocusNode,
348339 labelText: "Destination city" ,
349- enabled: ! _needsRecommendations,
350340 autocorrect: false ,
351341 enableSuggestions: false ,
352342 errorText: destinationsError,
353343 onChanged: (_) => setState (() {}),
354344 ),
355- SizedBox (height: isDesktop ? 16 : 12 ),
356- ShopInBitLabeledCheckbox (
357- value: _needsRecommendations,
358- onChanged: (v) => setState (() => _needsRecommendations = v),
359- label: "I need recommendations" ,
360- ),
361-
362345 SizedBox (height: isDesktop ? 24 : 16 ),
363346 _TravelSectionLabel (text: "When" , isDesktop: isDesktop),
364347 SizedBox (height: isDesktop ? 12 : 8 ),
0 commit comments