update 251111

This commit is contained in:
2025-11-11 14:15:08 +09:00
parent 661e7aa606
commit bd162bd4b8

View File

@@ -11,23 +11,119 @@ class LoginPage extends StatelessWidget {
backgroundColor: backgroundColor, backgroundColor: backgroundColor,
body: Stack( body: Stack(
children: [ children: [
Container(
padding: const EdgeInsets.fromLTRB(24, 32, 24, 8), Positioned(
decoration: BoxDecoration(color: backgroundColor), top: 0,
child: Column( left: 0,
mainAxisSize: MainAxisSize.min, right: 0,
children: [ height: MediaQuery.of(context).size.height * 2/3,
_buildTextField( child: Image.network(imageURL,
icon: Icons.person_outline, fit: BoxFit.cover,
hintText: 'Username',
isDarkMode: isDarkMode,
inputBackgroundColor: inputBackgroundColor,
subtleTextColor: subtleTextColor,
textColor: textColor,
),
],
), ),
), ),
Column(
children: [
AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
leading: IconButton(
icon: Icon(Icons.arrow_back, color: textColor),
onPressed: () {
},
),
title: Text(
'Login',
style: GoogleFonts.inter(
color: textColor,
fontWeight: FontWeight.bold,
fontSize: 20
),
),
centerTitle: true,
actions: [const SizedBox(width: 48)]
),
const Spacer(),
Container(
padding: const EdgeInsets.fromLTRB(24, 32, 24, 8),
decoration: BoxDecoration(color: backgroundColor),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
_buildTextField(
icon: Icons.person_outline,
hintText: 'UserName',
isDarkMode: isDarkMode,
inputBackgroundColor: inputBackgroundColor,
subtleTextColor: subtleTextColor,
textColor: textColor,
),
const SizedBox(height: 24),
_buildTextField(
icon: Icons.lock_outline,
hintText: 'PassWord',
obscureText: true,
isDarkMode: isDarkMode,
inputBackgroundColor: inputBackgroundColor,
subtleTextColor: subtleTextColor,
textColor: textColor,
),
const SizedBox(height: 24),
ElevatedButton(
onPressed: () {},
style: ElevatedButton.styleFrom(
backgroundColor: primaryColor,
minimumSize: const Size(double.infinity, 60),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(12),
),
elevation: 0,
),
child: Text(
'Login',
style: GoogleFonts.inter(
color: Colors.white,
fontWeight: FontWeight.bold,
fontSize: 16,
),
),
),
Container(
color: backgroundColor,
padding: const EdgeInsets.fromLTRB(24, 8, 24, 32),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
TextButton(
onPressed: (){},
child: Text(
'Forgot PassWord?',
style: GoogleFonts.inter(
color: primaryColor,
fontWeight: FontWeight.w500,
),
),
),
const SizedBox(width: 16),
TextButton(
onPressed: (){},
child: Text(
'Sign Up',
style: GoogleFonts.inter(
color: primaryColor,
fontWeight: FontWeight.w500,
),
),
),
],
),
),
],
),
),
],
),
], ],
), ),
); );
@@ -45,13 +141,14 @@ Widget _buildTextField({
}) { }) {
return TextField( return TextField(
obscureText: obscureText, obscureText: obscureText,
style: GoogleFonts.inter(color: textColor),
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: const EdgeInsets.symmetric(vertical: 20), contentPadding: const EdgeInsets.symmetric(vertical: 20),
hintText: hintText, hintText: hintText,
hintStyle: GoogleFonts.inter(color: subtleTextColor), hintStyle: GoogleFonts.inter(color: subtleTextColor),
prefixIcon: Padding( prefixIcon: Padding(
padding: const EdgeInsets.only(left: 20, right: 12), padding: const EdgeInsets.only(left: 20, right: 12),
child: Icon(icon, color: subtleTextColor), child: Icon(icon, color: subtleTextColor),
), ),
filled: true, filled: true,
fillColor: inputBackgroundColor, fillColor: inputBackgroundColor,
@@ -62,7 +159,7 @@ Widget _buildTextField({
focusedBorder: OutlineInputBorder( focusedBorder: OutlineInputBorder(
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
borderSide: const BorderSide(color: Color(0xFF137FEC), width: 2), borderSide: const BorderSide(color: Color(0xFF137FEC), width: 2),
) ),
), ),
); );
} }