From c8b08968ba236830070d8c2296eba2e0f24b1a01 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 9 Feb 2026 16:25:45 -0600 Subject: [PATCH] fix: make Turnstile baseUrl nullable to avoid const error --- sojorn_app/lib/widgets/auth/turnstile_widget.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sojorn_app/lib/widgets/auth/turnstile_widget.dart b/sojorn_app/lib/widgets/auth/turnstile_widget.dart index e3111e0..571e916 100644 --- a/sojorn_app/lib/widgets/auth/turnstile_widget.dart +++ b/sojorn_app/lib/widgets/auth/turnstile_widget.dart @@ -5,20 +5,20 @@ import '../../config/api_config.dart'; class TurnstileWidget extends StatelessWidget { final String siteKey; final ValueChanged onToken; - final String baseUrl; + final String? baseUrl; const TurnstileWidget({ super.key, required this.siteKey, required this.onToken, - this.baseUrl = ApiConfig.baseUrl, + this.baseUrl, }); @override Widget build(BuildContext context) { return CloudflareTurnstile( siteKey: siteKey, - baseUrl: baseUrl, + baseUrl: baseUrl ?? ApiConfig.baseUrl, onTokenReceived: onToken, ); }