|
@@ -1,14 +1,16 @@
|
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class CardLogin extends StatelessWidget {
|
|
class CardLogin extends StatelessWidget {
|
|
|
|
|
+
|
|
|
bool passwordInvisible = true;
|
|
bool passwordInvisible = true;
|
|
|
CardLogin({super.key});
|
|
CardLogin({super.key});
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
Widget build(BuildContext context) {
|
|
|
|
|
+
|
|
|
return Container(
|
|
return Container(
|
|
|
width: double.infinity,
|
|
width: double.infinity,
|
|
|
- padding: EdgeInsets.only(bottom: 1),
|
|
|
|
|
|
|
+ padding: const EdgeInsets.only(bottom: 1),
|
|
|
decoration: BoxDecoration(
|
|
decoration: BoxDecoration(
|
|
|
color: Colors.white,
|
|
color: Colors.white,
|
|
|
borderRadius: BorderRadius.circular(8),
|
|
borderRadius: BorderRadius.circular(8),
|
|
@@ -26,30 +28,30 @@ class CardLogin extends StatelessWidget {
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
child: Padding(
|
|
child: Padding(
|
|
|
- padding: EdgeInsets.only(left: 16, right: 16, top: 16),
|
|
|
|
|
|
|
+ padding: const EdgeInsets.only(left: 16, right: 16, top: 16),
|
|
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
child: Column(crossAxisAlignment: CrossAxisAlignment.start, children: [
|
|
|
- Text("Login", style: TextStyle(fontSize: 45, letterSpacing: .6)),
|
|
|
|
|
- SizedBox(
|
|
|
|
|
|
|
+ const Text("Login", style: TextStyle(fontSize: 45, letterSpacing: .6)),
|
|
|
|
|
+ const SizedBox(
|
|
|
height: 30,
|
|
height: 30,
|
|
|
),
|
|
),
|
|
|
- Text(
|
|
|
|
|
|
|
+ const Text(
|
|
|
"Username",
|
|
"Username",
|
|
|
style: TextStyle(fontSize: 26),
|
|
style: TextStyle(fontSize: 26),
|
|
|
),
|
|
),
|
|
|
- TextField(
|
|
|
|
|
|
|
+ const TextField(
|
|
|
decoration: InputDecoration(
|
|
decoration: InputDecoration(
|
|
|
hintText: "Username",
|
|
hintText: "Username",
|
|
|
hintStyle: TextStyle(color: Colors.grey, fontSize: 12),
|
|
hintStyle: TextStyle(color: Colors.grey, fontSize: 12),
|
|
|
)),
|
|
)),
|
|
|
- SizedBox(
|
|
|
|
|
|
|
+ const SizedBox(
|
|
|
height: 30,
|
|
height: 30,
|
|
|
),
|
|
),
|
|
|
- Text("Password", style: TextStyle(fontSize: 26)),
|
|
|
|
|
|
|
+ const Text("Password", style: TextStyle(fontSize: 26)),
|
|
|
TextFormField(
|
|
TextFormField(
|
|
|
obscureText: true,
|
|
obscureText: true,
|
|
|
decoration: InputDecoration(
|
|
decoration: InputDecoration(
|
|
|
hintText: "********",
|
|
hintText: "********",
|
|
|
- hintStyle: TextStyle(color: Colors.grey, fontSize: 12),
|
|
|
|
|
|
|
+ hintStyle: const TextStyle(color: Colors.grey, fontSize: 12),
|
|
|
suffixIcon: IconButton(
|
|
suffixIcon: IconButton(
|
|
|
icon: Icon(passwordInvisible
|
|
icon: Icon(passwordInvisible
|
|
|
? Icons.visibility_off
|
|
? Icons.visibility_off
|
|
@@ -58,7 +60,7 @@ class CardLogin extends StatelessWidget {
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
- SizedBox(
|
|
|
|
|
|
|
+ const SizedBox(
|
|
|
height: 35,
|
|
height: 35,
|
|
|
)
|
|
)
|
|
|
]),
|
|
]),
|