GoogleAuth
// Some code
class GoogleAuth extends StatelessWidget {
const GoogleAuth({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
height: 700,
width: double.infinity,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/delivery/auth_female.png',
),
fit: BoxFit.cover,
),
),
alignment: Alignment.topRight,
padding: EdgeInsets.only(top: 63, left: 17),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
IconButton(
onPressed: () {},
icon: Icon(
Icons.arrow_back,
size: 30,
color: Colors.white,
),
),
Text(
'Welcome',
style: GoogleFonts.poppins(
textStyle: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w500,
color: Colors.white,
),
),
),
SizedBox(),
],
),
),
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: 360,
width: double.infinity,
decoration: BoxDecoration(
color: Color(0xFFF4F5F9),
borderRadius: BorderRadius.only(
topRight: Radius.circular(10),
topLeft: Radius.circular(10),
),
),
padding: EdgeInsets.only(top: 31, right: 16, left: 16),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'Welcome',
style: TextStyle(
fontSize: 25,
fontWeight: FontWeight.w800,
),
),
Container(
height: 60,
width: double.infinity,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(
colors: [
Color(0xFFAEDC81).withValues(alpha: 0.8),
Color(0xFF6CC51D),
],
),
),
child: ListTile(
leading: Image.asset(
'assets/person.png',
color: Colors.white,
height: 36,
width: 36,
),
title: Text(
'Create account',
style: TextStyle(
fontSize: 15,
fontWeight: FontWeight.w800,
color: Colors.white,
),
),
)
),
],
),
),
),
],
),
);
}
}Last updated