Controller Orom

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

ld Run Tools VCS

Window Help controller - main.dart [controller]


sdk gphone x86 arm(mobile)
-main.dart x home.dart x main.d
Pub get has not been run
Fimport
2
Ainport 'package:controller/home . .dart';
3
4
'package:flutter/material
void main() {
dart'i
5
6
runApp (const MyApp ());
7

class MyApp extends


9 StatelessWidget
const MyApp ({Key? key})
{
: super (key: key);
10
11
@override
12
13
Widget builLd (BuildContext context) {
14
return const MaterialApp(
15
home: HomePage (),
); / MaterialApp
16
17
18

Shot on OnePlus
By Harsh
Logcat EMessages Profiler Rån Apn
Is VCS Window Help controller -home.dart [controller]

sdk gphone x86 arm (mobile) main.dart

main.dart x home.dart X

"Pub get' has not been run


1 import 'package:flutter/material. dart ';
2 jclass HomePage extends StatefulWidget {
3 const HomePage ({Key? key}) : super(key: key);
4
I
5 @override
6O State<HomePage> createState () => HomePageState();
7 }
8
9 class HomePageState extends State<HomePage> {
10 final -textController = TextEditingControllerO;
11 String UserInput = ' ;
12 @override
13 ot Widget build(BuildContext context) {
14 return Scaffold(
15 body: Padding (
16 padding: const EdgeInsets. all (20.0),
17 child: Column(
18 mainAxisAlignment : MainAxisAlignment. center,
19 children:. [
20
DDD
21 Expanded(
22 child: Container(
23 chila: Center (
24 child: Text (userInput),
25 ), // Center
26 ), // Container
27 ),// Expanded
28
TextField (
controller: textController,
decoration: InputDecoration (

a Profiler Run App Inspection


essages
on OnePlus
ub get' has not been run
), // Center
), // Container
), //Expanded
I
D TextField (
controller: -textControLler,
1 decoration: InputDecoration(
2 border: OutlineInputBorder(),
3 hintText :'what areU doing?',
34 suffixIcon: IconButton(
35 onPressed: ()
36
37 -textControllLer.clear);
38
39 }.
40 X icon: const Icon (Icons.clear),
41 ) // IconButton
42
O--T D 1/ InputDecoration
43 ), I/ TextField
44 ElevatedButton(
45 onPressed: ({
46 setstate ( () {
47 UserInput=_textController.text;
48
49 },
50 child; Iext(' Submitstyle:TextStyle (color: Colors. white)),
51 ), // ElevatedButton
52
J,
), // Column
) , / / Padding

-Messages a Profiler Run App Inspection

Q Search

You might also like