Messaging
Implemented Chat Screens, Profile Pages, Search Pages WIP: User profile, new chat button Intended: Groups, Calls, Voice Messages Properly deleting chats, offline storage of messages
This commit is contained in:
@@ -5,7 +5,9 @@ import 'package:messaging_app/service/snackbar_service.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
class LoginPage extends StatefulWidget {
|
||||
const LoginPage({super.key,});
|
||||
const LoginPage({
|
||||
super.key,
|
||||
});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
@@ -78,11 +80,11 @@ class _LoginPageState extends State<LoginPage> {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
'Welcome Back!',
|
||||
'welcome back!',
|
||||
style: TextStyle(fontSize: 35, fontWeight: FontWeight.w700),
|
||||
),
|
||||
Text(
|
||||
'Please Login to your Account',
|
||||
'please login to your account',
|
||||
style: TextStyle(fontSize: 25, fontWeight: FontWeight.w200),
|
||||
)
|
||||
],
|
||||
@@ -114,13 +116,15 @@ class _LoginPageState extends State<LoginPage> {
|
||||
Widget _emailTextField() {
|
||||
return TextFormField(
|
||||
autocorrect: false,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
textInputAction: TextInputAction.next,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
validator: (_input) {
|
||||
return _input!.isNotEmpty && _input.contains("@")
|
||||
? null
|
||||
: "Please enter a valid Email";
|
||||
: "please enter a valid email";
|
||||
},
|
||||
onSaved: (_input) {
|
||||
setState(() {
|
||||
@@ -129,7 +133,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
},
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "Email Address",
|
||||
hintText: "email address",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
);
|
||||
@@ -138,11 +142,13 @@ class _LoginPageState extends State<LoginPage> {
|
||||
Widget _passwordTextField() {
|
||||
return TextFormField(
|
||||
autocorrect: false,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
textInputAction: TextInputAction.next,
|
||||
style: TextStyle(
|
||||
color: Colors.white,
|
||||
),
|
||||
validator: (_input) {
|
||||
return _input!.isNotEmpty ? null : "Please enter a Password";
|
||||
return _input!.isNotEmpty ? null : "please enter a aassword";
|
||||
},
|
||||
onSaved: (_input) {
|
||||
setState(() {
|
||||
@@ -152,7 +158,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
obscureText: true,
|
||||
cursorColor: Colors.white,
|
||||
decoration: InputDecoration(
|
||||
hintText: "Password",
|
||||
hintText: "password",
|
||||
focusedBorder: UnderlineInputBorder(
|
||||
borderSide: BorderSide(color: Colors.white))),
|
||||
);
|
||||
@@ -176,7 +182,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
},
|
||||
color: Colors.blue,
|
||||
child: Text(
|
||||
'LOGIN',
|
||||
'login',
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -195,7 +201,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||
height: _deviceHeight * 0.06,
|
||||
width: _deviceWidth,
|
||||
child: Text(
|
||||
'REGISTER',
|
||||
'register',
|
||||
textAlign: TextAlign.center,
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
|
||||
Reference in New Issue
Block a user