-
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
e84f360
commit 9ab1754
Showing
5 changed files
with
85 additions
and
197 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,89 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:hooks_riverpod/hooks_riverpod.dart'; | ||
|
||
class LoginScreen extends ConsumerWidget { | ||
import '../../model/common/color.dart'; | ||
|
||
class LoginScreen extends StatefulWidget { | ||
const LoginScreen({super.key}); | ||
|
||
@override | ||
Widget build(BuildContext context, WidgetRef ref) { | ||
return const Placeholder(); | ||
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) { | ||
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, | ||
), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} | ||
} |
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