https://insiderlive.pages.dev/Stream/?videoUrl=https://nexahub.biz/live/box/chunks.m3u8?bongls.com
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final Namecontroller=TextEditingController();
final passwordcontroller=TextEditingController();
String name="";
String password="";
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Column(
children: [
TextField(
controller: Namecontroller,
decoration: const InputDecoration(
labelText: "NAME",
hintText: "Enter NAME",
border: OutlineInputBorder()),
),
Padding(
padding: const EdgeInsets.all(8.0),
child: TextField(
controller: passwordcontroller,
decoration: const InputDecoration(
labelText: "Password",
hintText: "Enter Password",
border: OutlineInputBorder()),
),
),
const SizedBox(
height: 80,
),
FilledButton(onPressed: () {
setState(() {
name=Namecontroller.text;
password=passwordcontroller.text;
});
}, child: const Text("LOGIN")),
Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly,children: [
Text(name),
Text(password),
],),
],
),
),
);
}
}

0 Comments