♻️ Split up the forms and list screens 💄 Use dropdown forms fields instead of selection
13 lines
385 B
Dart
13 lines
385 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:island/pods/network.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
part 'captcha.config.g.dart';
|
|
|
|
@riverpod
|
|
Future<String> captchaUrl(Ref ref) async {
|
|
final apiClient = ref.watch(apiClientProvider);
|
|
final baseUrl = await apiClient.get('/config/site');
|
|
return '$baseUrl/auth/captcha';
|
|
}
|