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
db61ef6
commit 7224d7a
Showing
7 changed files
with
232 additions
and
6 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 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,5 +1,3 @@ | ||
// export 'models/xcore.dart'; | ||
export 'pages/xcore.dart'; | ||
export 'routes/app_pages.dart'; | ||
// export 'services/xcore.dart'; | ||
export 'shared/xcore.dart'; |
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,222 @@ | ||
// ignore_for_file: prefer_const_constructors, prefer_const_literals_to_create_immutables | ||
|
||
import 'package:aqua_workout_lite/core.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:get/get.dart'; | ||
|
||
class LoginView extends StatelessWidget { | ||
const LoginView({Key key}) : super(key: key); | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return Scaffold( | ||
backgroundColor: kThirdColor, | ||
body: SingleChildScrollView( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Stack( | ||
children: [ | ||
backgroundImage(), | ||
titleSubtitle(), | ||
], | ||
), | ||
Padding( | ||
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 15), | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
formLogin(), | ||
SizedBox(height: 15), | ||
forgetButton(), | ||
SizedBox(height: 15), | ||
Center( | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.center, | ||
children: [ | ||
TextButton( | ||
onPressed: () {}, | ||
child: Container( | ||
height: 50, | ||
width: Get.width * 0.7, | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(5), | ||
color: kFirstColor, | ||
), | ||
child: Center( | ||
child: Text( | ||
"Login", | ||
style: TextStyle( | ||
color: Colors.white, fontSize: 20), | ||
), | ||
), | ||
), | ||
), | ||
TextButton( | ||
onPressed: () {}, | ||
child: Container( | ||
height: 50, | ||
width: Get.width * 0.7, | ||
decoration: BoxDecoration( | ||
borderRadius: BorderRadius.circular(5), | ||
color: kThirdColor, | ||
border: | ||
Border.all(width: 1, color: kFirstColor)), | ||
child: Center( | ||
child: Text( | ||
"Sign Up", | ||
style: TextStyle( | ||
color: Colors.white, fontSize: 20), | ||
), | ||
), | ||
), | ||
), | ||
], | ||
), | ||
) | ||
], | ||
), | ||
) | ||
], | ||
), | ||
), | ||
); | ||
} | ||
|
||
Align forgetButton() { | ||
return Align( | ||
alignment: Alignment.centerRight, | ||
child: TextButton( | ||
onPressed: () {}, | ||
child: Text( | ||
"Forgot your password?", | ||
style: TextStyle(color: Colors.white, fontSize: 18), | ||
), | ||
), | ||
); | ||
} | ||
|
||
Column formLogin() { | ||
return Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: [ | ||
Text( | ||
"Email", | ||
style: TextStyle(color: Color(0xFF707070), fontSize: 18), | ||
), | ||
TextField( | ||
decoration: InputDecoration( | ||
hintText: "faisalramdan.id@gmail.com", | ||
enabledBorder: UnderlineInputBorder( | ||
borderSide: BorderSide( | ||
color: Color(0xFF707070), | ||
), | ||
), | ||
focusedBorder: UnderlineInputBorder( | ||
borderSide: BorderSide( | ||
color: Color(0xFF707070), | ||
), | ||
), | ||
), | ||
), | ||
SizedBox(height: 20), | ||
Text( | ||
"Password", | ||
style: TextStyle(color: Color(0xFF707070), fontSize: 18), | ||
), | ||
TextField( | ||
obscureText: true, | ||
decoration: InputDecoration( | ||
hintText: "*******", | ||
enabledBorder: UnderlineInputBorder( | ||
borderSide: BorderSide( | ||
color: Color(0xFF707070), | ||
), | ||
), | ||
focusedBorder: UnderlineInputBorder( | ||
borderSide: BorderSide( | ||
color: Color(0xFF707070), | ||
), | ||
), | ||
), | ||
), | ||
], | ||
); | ||
} | ||
|
||
Container titleSubtitle() { | ||
return Container( | ||
decoration: const BoxDecoration( | ||
gradient: LinearGradient( | ||
begin: Alignment.bottomCenter, | ||
end: Alignment.topCenter, | ||
colors: [ | ||
kThirdColor, | ||
Colors.transparent, | ||
]), | ||
), | ||
height: Get.height * 0.55, | ||
width: Get.width, | ||
child: Padding( | ||
padding: const EdgeInsets.symmetric(vertical: 20, horizontal: 20), | ||
child: Column( | ||
children: [ | ||
const SizedBox(height: 30), | ||
RichText( | ||
text: const TextSpan( | ||
text: 'HARD\t', | ||
style: TextStyle( | ||
fontFamily: "Bebas", | ||
fontSize: 30, | ||
letterSpacing: 5, | ||
), | ||
children: [ | ||
TextSpan( | ||
text: 'ELEMENT', | ||
style: TextStyle( | ||
color: kFirstColor, | ||
), | ||
) | ||
]), | ||
), | ||
const Spacer(), | ||
Align( | ||
alignment: Alignment.centerLeft, | ||
child: Column( | ||
crossAxisAlignment: CrossAxisAlignment.start, | ||
children: const [ | ||
Text( | ||
"Sign In", | ||
style: TextStyle( | ||
fontSize: 40, | ||
color: Colors.white, | ||
fontWeight: FontWeight.bold, | ||
), | ||
), | ||
SizedBox(height: 10), | ||
Text( | ||
"Train and live the new experience of \nexercising" | ||
" at home", | ||
style: TextStyle(fontSize: 20), | ||
), | ||
], | ||
), | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
|
||
Container backgroundImage() { | ||
return Container( | ||
height: Get.height * 0.55, | ||
decoration: const BoxDecoration( | ||
image: DecorationImage( | ||
image: AssetImage("assets/images/black/12.jpg"), | ||
fit: BoxFit.cover, | ||
), | ||
), | ||
); | ||
} | ||
} |
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 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,3 +1,4 @@ | ||
// Started | ||
export 'started/welcome_view.dart'; | ||
export 'started/about_view.dart'; | ||
export 'started/login_view.dart'; |
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 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