-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextFiled.txt
111 lines (95 loc) · 2.63 KB
/
TextFiled.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import 'package:flutter/material.dart';
void main() {
runApp(Home());
}
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: "Flutter Demo",
debugShowCheckedModeBanner: false,
theme: ThemeData(primarySwatch: Colors.deepPurple),
home: HomePage(),
);
}
}
class HomePage extends StatefulWidget {
const HomePage({Key? key}) : super(key: key);
@override
State<HomePage> createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
var width = MediaQuery.of(context).size.width;
var height = MediaQuery.of(context).size.height;
return Scaffold(
appBar: AppBar(
title: Text("LOGIN PAGE"),
),
body: Container(
color: Colors.white,
padding: EdgeInsets.all(20),
child: ListView(
children: [
Center(
child: Text(
"LOGIN",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 30.0,
color: Colors.deepPurple,
),
),
),
SizedBox(
height: height * 0.03,
),
TextField(
keyboardType: TextInputType.phone,
decoration: InputDecoration(
hintText: "Phone",
hintStyle: TextStyle(
color: Colors.deepPurple,
),
border: OutlineInputBorder(),
),
),
SizedBox(
height: height * 0.02,
),
TextField(
decoration: InputDecoration(
hintText: "Password",
hintStyle: TextStyle(
color: Colors.deepPurple,
),
border: OutlineInputBorder()
),
obscureText: true,
),
SizedBox(
height: height * 0.04,
),
Center(
child: Container(
alignment: Alignment.center,
margin: EdgeInsets.symmetric(horizontal: width * 0.2),
height: height * 0.05,
color: Colors.deepPurple,
child: Text(
"LOGIN",
style: TextStyle(
fontSize: 20.0,
color: Colors.white,
),
),
),
),
],
),
),
);
}
}