-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e4a136
commit 65e81a9
Showing
1 changed file
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import 'package:flutter/cupertino.dart'; | ||
import 'package:flutter/material.dart'; | ||
|
||
import '../../model/common/color.dart'; | ||
|
||
class LoginScreen extends StatefulWidget { | ||
const LoginScreen({super.key}); | ||
|
||
@override | ||
State<LoginScreen> createState() => _LoginScreenState(); | ||
} | ||
|
||
class _LoginScreenState extends State<LoginScreen> { | ||
late Size size; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
WidgetsBinding.instance.addPostFrameCallback((_) { | ||
setState(() { | ||
size = MediaQuery.of(context).size; | ||
}); | ||
}); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
if (size == null) { | ||
return const SizedBox.shrink(); | ||
} | ||
return Scaffold( | ||
backgroundColor: WHITE, | ||
body: Center( | ||
child: Column( | ||
children: [ | ||
SizedBox( | ||
width: size.width * 1.2, | ||
child: Image.asset('assets/images/logo.png'), | ||
), | ||
Column( | ||
children: [ | ||
SizedBox( | ||
width: size.height * 0.2, | ||
child: const Text('Title', | ||
style: TextStyle(fontSize: 100, color: BLACK)), | ||
), | ||
SizedBox( | ||
width: size.height * 0.2, | ||
child: const Text(' sub Title', | ||
style: TextStyle(fontSize: 50, color: BLACK)), | ||
), | ||
ElevatedButton( | ||
onPressed: () {}, | ||
style: ElevatedButton.styleFrom( | ||
padding: EdgeInsets.symmetric( | ||
horizontal: size.width * 0.2, | ||
vertical: size.width * 0.03, | ||
), | ||
backgroundColor: YELLOW, | ||
shape: RoundedRectangleBorder( | ||
borderRadius: BorderRadius.circular(20), | ||
), | ||
elevation: 0, | ||
), | ||
child: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Image.asset( | ||
"assets/images/kakao.png", | ||
width: 43, | ||
height: 26, | ||
), | ||
const SizedBox(width: 8), | ||
const Text( | ||
'카카오톡으로 로그인', | ||
style: TextStyle( | ||
color: BLACK, | ||
fontSize: 20, | ||
fontFamily: 'Ink Free', | ||
fontWeight: FontWeight.w400, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |