Skip to content

Commit b0fe80f

Browse files
committed
fix: Button text
1 parent 4fb80f1 commit b0fe80f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/docs/6.x/forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Widget view(BuildContext context) {
101101
body: SafeArea(
102102
child: NyForm(
103103
form: form,
104-
footer: Button.primary(child: "Submit", submitForm: (form, (data) {
104+
footer: Button.primary(text: "Submit", submitForm: (form, (data) {
105105
printInfo(data);
106106
}),
107107
),
@@ -984,4 +984,4 @@ NyForm(
984984
- The `loading` widget is only shown when the form is in a loading state.
985985
- The `onChanged` callback provides both the changed field name and the complete form data.
986986
- When `locked` is true, the form becomes non-interactive but still displays values.
987-
- `header` and `footer` widgets are optional and will only be displayed if provided.
987+
- `header` and `footer` widgets are optional and will only be displayed if provided.

0 commit comments

Comments
 (0)