@@ -24,11 +24,13 @@ class MyApp extends StatefulWidget {
24
24
class _MyAppState extends State <MyApp > {
25
25
String _result = '' ;
26
26
bool logoutVisible = false ;
27
+ late final TextEditingController textEditingController;
27
28
28
29
@override
29
30
void initState () {
30
31
super .initState ();
31
32
initPlatformState ();
33
+ textEditingController = TextEditingController ();
32
34
}
33
35
34
36
// Platform messages are asynchronous, so we initialize in an async method.
@@ -148,6 +150,16 @@ class _MyAppState extends State<MyApp> {
148
150
onPressed: _login (_withFacebook),
149
151
child: const Text ('Facebook' ),
150
152
),
153
+ Padding (
154
+ padding: const EdgeInsets .all (8.0 ),
155
+ child: TextField (
156
+ controller: textEditingController,
157
+ decoration: const InputDecoration (
158
+ border: OutlineInputBorder (),
159
+
160
+ ),
161
+ ),
162
+ ),
151
163
ElevatedButton (
152
164
onPressed: _login (_withEmailPasswordless),
153
165
child: const Text ('Email Passwordless' ),
@@ -308,7 +320,7 @@ class _MyAppState extends State<MyApp> {
308
320
LoginParams (
309
321
loginProvider: Provider .email_passwordless,
310
322
extraLoginOptions: ExtraLoginOptions (
311
-
323
+ login_hint: textEditingController.text ,
312
324
),
313
325
),
314
326
);
0 commit comments