File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:flutter/material.dart' ;
2
+
3
+ class InputScreen extends StatefulWidget {
4
+ const InputScreen ({super .key});
5
+
6
+ @override
7
+ State <InputScreen > createState () => _InputScreenState ();
8
+ }
9
+
10
+ class _InputScreenState extends State <InputScreen > {
11
+ final TextEditingController _inputController = TextEditingController ();
12
+
13
+ @override
14
+ Widget build (BuildContext context) {
15
+ return Scaffold (
16
+ appBar: AppBar (
17
+ title: const Text ('Lorem Ipsum' ),
18
+ ),
19
+ body: Padding (
20
+ padding: const EdgeInsets .all (16 ),
21
+ child: SingleChildScrollView (
22
+ child: TextField (
23
+ controller: _inputController,
24
+ maxLines: null ,
25
+ decoration: const InputDecoration (
26
+ labelText: 'Lorem Ipsum' ,
27
+ ),
28
+ ),
29
+ ),
30
+ ),
31
+ );
32
+ }
33
+ }
Original file line number Diff line number Diff line change 1
1
import 'package:demo_app/defects_screen.dart' ;
2
2
import 'package:demo_app/form_screen.dart' ;
3
+ import 'package:demo_app/input_screen.dart' ;
3
4
import 'package:demo_app/issue_1619_repro.dart' ;
4
5
import 'package:demo_app/issue_1677_repro.dart' ;
5
6
import 'package:demo_app/nesting_screen.dart' ;
@@ -107,6 +108,14 @@ class _MyHomePageState extends State<MyHomePage> {
107
108
},
108
109
child: const Text ('Form Test' ),
109
110
),
111
+ ElevatedButton (
112
+ onPressed: () {
113
+ Navigator .of (context).push (
114
+ MaterialPageRoute (builder: (_) => const InputScreen ()),
115
+ );
116
+ },
117
+ child: const Text ('Input Test' ),
118
+ ),
110
119
ElevatedButton (
111
120
onPressed: () {
112
121
Navigator .of (context).push (
You can’t perform that action at this time.
0 commit comments