Skip to content

Commit d6979d4

Browse files
fix: update example
1 parent 8296f60 commit d6979d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/lib/main.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ class MyApp extends StatelessWidget {
1111

1212
@override
1313
Widget build(BuildContext context) {
14-
return MaterialApp(
14+
return const MaterialApp(
1515
title: 'Flutter FormBuilder Demo',
1616
debugShowCheckedModeBanner: false,
17-
localizationsDelegates: const [
17+
localizationsDelegates: [
1818
FormBuilderLocalizations.delegate,
1919
GlobalMaterialLocalizations.delegate,
2020
GlobalWidgetsLocalizations.delegate,
2121
],
22-
supportedLocales: FormBuilderLocalizations.delegate.supportedLocales,
23-
home: const CompleteForm(),
22+
supportedLocales: FormBuilderLocalizations.supportedLocales,
23+
home: CompleteForm(),
2424
);
2525
}
2626
}

0 commit comments

Comments
 (0)