You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

101 lines
3.9 KiB

2 weeks ago
import 'package:flutter/material.dart';
import 'package:supplier_new/common/settings.dart';
import 'package:supplier_new/login/login.dart';
3 days ago
import 'package:supplier_new/signup/signup.dart';
2 weeks ago
class LoginSignUpScreen extends StatefulWidget {
const LoginSignUpScreen({super.key});
@override
State<LoginSignUpScreen> createState() => _LoginSignUpScreenState();
}
class _LoginSignUpScreenState extends State<LoginSignUpScreen> {
@override
Widget build(BuildContext context) {
3 days ago
return Scaffold(
body: Padding(
padding: EdgeInsets.all(24),
child: Column(
children: [
SizedBox(height: MediaQuery.of(context).size.height * .2),
Center(
child: Text("AQUICK SUPPLIER",
style: fontTextStyle(20, Color(0XFF515253), FontWeight.w800)),
),
SizedBox(height: MediaQuery.of(context).size.height * .05),
CircleAvatar(radius: 80, backgroundColor: Color(0XFFC9DFFE)),
SizedBox(height: MediaQuery.of(context).size.height * .05),
Center(
child: Text(
"Welcome to Aquick Supplier",
style: fontTextStyle(20, Color(0XFF343637), FontWeight.w700),
2 weeks ago
),
3 days ago
),
SizedBox(height: MediaQuery.of(context).size.height * .012),
Center(
child: Text(
"Sign up or login to be listed as a supplier, start deliveries and track orders",
style: fontTextStyle(12, Color(0XFF7E7F80), FontWeight.w400),
textAlign: TextAlign.center, // Keeps text centered in multiple lines
2 weeks ago
),
3 days ago
)
,
SizedBox(height: MediaQuery.of(context).size.height * .04),
Container(
width:double.infinity,
2 weeks ago
height: MediaQuery.of(context).size.height * .06,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
3 days ago
foregroundColor: Colors.white,
backgroundColor: primaryColor,
2 weeks ago
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24.0), // Customize the radius
),
),
3 days ago
onPressed: () async{
Navigator.push(
context,
MaterialPageRoute(
3 days ago
builder: (context) => Login()),
);
2 weeks ago
},
3 days ago
child: Text('Login',style: fontTextStyle(14,Colors.white,FontWeight.w500),),
)),
SizedBox(height: MediaQuery.of(context).size.height * .012),
Container(
width: double.infinity,
height: MediaQuery.of(context).size.height * .06,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
foregroundColor: Color(0XFF757575),
backgroundColor: Colors.white,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24.0), // Customize the radius
side: BorderSide(
color: Color(0XFF757575), // Border color
width: 1, // Border width
),
2 weeks ago
),
),
3 days ago
onPressed: () async {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SignUp()),
);
},
child: Text(
'Sign up',
style: fontTextStyle(12, Color(0XFF757575), FontWeight.w500),
),
),
)
2 weeks ago
3 days ago
],
),
)
2 weeks ago
);
}
}