Skip to content

Commit

Permalink
fix: add validator
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-ding committed Nov 1, 2024
1 parent e67413c commit 0b1bd82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/lib/welcome_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'package:flutter_form_builder/flutter_form_builder.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:form_builder_validators/form_builder_validators.dart';
import 'package:go_router/go_router.dart';
import 'package:ui/movie_watchlist.dart';
import 'package:ui/providers/APIs.dart';
Expand Down Expand Up @@ -186,6 +187,7 @@ class WelcomePageState extends ConsumerState<WelcomePage> {
FormBuilderTextField(
name: "name",
decoration: InputDecoration(labelText: "要解析的名字"),
validator: FormBuilderValidators.required(),
),
FormBuilderDropdown(
name: "type",
Expand Down

0 comments on commit 0b1bd82

Please sign in to comment.