feat: allow not set tmdb api key

This commit is contained in:
Simon Ding
2025-03-19 11:18:24 +08:00
parent be86fd05e1
commit dac96c099c
3 changed files with 102 additions and 101 deletions

View File

@@ -46,10 +46,9 @@ class _GeneralState extends ConsumerState<GeneralSettings> {
children: [
FormBuilderTextField(
name: "tmdb_api",
decoration: Commons.requiredTextFieldStyle(
text: "TMDB Api Key", icon: const Icon(Icons.key)),
decoration: const InputDecoration(
labelText: "TMDB Api Key", icon: Icon(Icons.key), helperText: "未防止被限流,可以提供自定义的 TMDB Api Key"),
//
validator: FormBuilderValidators.required(),
),
FormBuilderTextField(
name: "download_dir",