Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added SingleChildScrollView #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
346 changes: 174 additions & 172 deletions lib/screens/sign_in.dart
Expand Up @@ -28,187 +28,189 @@ class SignInPageView extends State<SignInPage> {
return Scaffold(
resizeToAvoidBottomInset: false,
backgroundColor: LightColors.kLightYellow,
body: Container(
child: Column(
children: <Widget>[
Container(
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/background-4.png'),
fit: BoxFit.fill)),
child: Stack(
children: <Widget>[
Positioned(
left: 30,
width: 80,
height: 200,
child: FadeAnimation(
1.5,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/light-1.png'))),
))),
Positioned(
left: 140,
width: 80,
height: 150,
child: FadeAnimation(
1.5,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/light-2.png'))),
))),
Positioned(
right: 40,
top: 20,
width: 80,
height: 150,
child: FadeAnimation(
1.8,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/logo-2.png'))),
))),
Positioned(
child: FadeAnimation(
1.2,
Container(
margin: EdgeInsets.only(top: 70),
child: Center(
child: Text(
"Login",
style: TextStyle(
color: LightColors.kLightYellow,
fontSize: 50,
fontWeight: FontWeight.bold),
body: SingleChildScrollView(
child: Container(
child: Column(
children: <Widget>[
Container(
height: 400,
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage('assets/images/background-4.png'),
fit: BoxFit.fill)),
child: Stack(
children: <Widget>[
Positioned(
left: 30,
width: 80,
height: 200,
child: FadeAnimation(
1.5,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/light-1.png'))),
))),
Positioned(
left: 140,
width: 80,
height: 150,
child: FadeAnimation(
1.5,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/light-2.png'))),
))),
Positioned(
right: 40,
top: 20,
width: 80,
height: 150,
child: FadeAnimation(
1.8,
Container(
decoration: BoxDecoration(
image: DecorationImage(
image: AssetImage(
'assets/images/logo-2.png'))),
))),
Positioned(
child: FadeAnimation(
1.2,
Container(
margin: EdgeInsets.only(top: 70),
child: Center(
child: Text(
"Login",
style: TextStyle(
color: LightColors.kLightYellow,
fontSize: 50,
fontWeight: FontWeight.bold),
),
),
),
))),
Positioned(
child: FadeAnimation(
1.3,
Container(
margin: EdgeInsets.only(top: 170),
child: Center(
child: Text(
"Koperasi SKMN 4 Bandung",
style: TextStyle(
color:
LightColors.kLightYellow.withOpacity(1),
fontSize: 18,
fontWeight: FontWeight.normal),
))),
Positioned(
child: FadeAnimation(
1.3,
Container(
margin: EdgeInsets.only(top: 170),
child: Center(
child: Text(
"Koperasi SKMN 4 Bandung",
style: TextStyle(
color:
LightColors.kLightYellow.withOpacity(1),
fontSize: 18,
fontWeight: FontWeight.normal),
),
),
),
)))
],
)))
],
),
),
),
Padding(
padding: EdgeInsets.all(30),
child: Column(children: <Widget>[
FadeAnimation(
1.3,
Container(
padding: EdgeInsets.all(8),
decoration: BoxDecoration(
color: LightColors.kLightYellow,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: Color.fromRGBO(143, 148, 251, .2),
blurRadius: 20.0,
offset: Offset(0, 10))
]),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(8.0),
decoration: BoxDecoration(
border: Border(
bottom:
BorderSide(color: Colors.grey[100]))),
child: TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Username",
hintStyle:
TextStyle(color: Colors.grey[400])),
),
),
Container(
padding: EdgeInsets.all(8.0),
child: TextField(
obscureText: true,
enableSuggestions: false,
autocorrect: false,
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Password",
hintStyle:
TextStyle(color: Colors.grey[400])),
Padding(
padding: EdgeInsets.all(30),
child: Column(children: <Widget>[
FadeAnimation(
1.3,
Container(
padding: EdgeInsets.all(8),
decoration: BoxDecoration(
color: LightColors.kLightYellow,
borderRadius: BorderRadius.circular(10),
boxShadow: [
BoxShadow(
color: Color.fromRGBO(143, 148, 251, .2),
blurRadius: 20.0,
offset: Offset(0, 10))
]),
child: Column(
children: <Widget>[
Container(
padding: EdgeInsets.all(8.0),
decoration: BoxDecoration(
border: Border(
bottom:
BorderSide(color: Colors.grey[100]))),
child: TextField(
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Username",
hintStyle:
TextStyle(color: Colors.grey[400])),
),
),
)
],
),
)),
SizedBox(height: 30),
FadeAnimation(
1.3,
GestureDetector(
child: Container(
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(colors: [
Color.fromRGBO(255, 153, 51, .8),
Color.fromRGBO(255, 153, 51, .5)
])),
child: Center(
child: Text(
'Login',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold),
Container(
padding: EdgeInsets.all(8.0),
child: TextField(
obscureText: true,
enableSuggestions: false,
autocorrect: false,
decoration: InputDecoration(
border: InputBorder.none,
hintText: "Password",
hintStyle:
TextStyle(color: Colors.grey[400])),
),
)),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => HomePage()),
);
})),
SizedBox(
height: 8,
),
Center(
child: Row(children: <Widget>[
Text("Don't have an account ?",
style: TextStyle(
fontSize: 12, color: LightColors.kDarkYellow)),
)
],
),
)),
SizedBox(height: 30),
FadeAnimation(
1.3,
GestureDetector(
child: Container(
height: 50,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
gradient: LinearGradient(colors: [
Color.fromRGBO(255, 153, 51, .8),
Color.fromRGBO(255, 153, 51, .5)
])),
child: Center(
child: Text(
'Login',
style: TextStyle(
color: Colors.white,
fontWeight: FontWeight.bold),
),
)),
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => HomePage()),
);
})),
SizedBox(
width: 7,
height: 8,
),
Center(
child: Row(children: <Widget>[
Text("Don't have an account ?",
style: TextStyle(
fontSize: 12, color: LightColors.kDarkYellow)),
SizedBox(
width: 7,
),
Text(
'Sign Up',
style:
TextStyle(fontSize: 12, color: LightColors.kDarkYellow),
)
])),
SizedBox(height: 70),
Text(
'Sign Up',
style:
TextStyle(fontSize: 12, color: LightColors.kDarkYellow),
"Forgot Password ?",
style: TextStyle(color: LightColors.kDarkYellow),
)
])),
SizedBox(height: 70),
Text(
"Forgot Password ?",
style: TextStyle(color: LightColors.kDarkYellow),
)
]),
)
],
]),
)
],
),
),
),
);
Expand Down
8 changes: 4 additions & 4 deletions pubspec.lock
Expand Up @@ -7,7 +7,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.6.1"
version: "2.8.1"
boolean_selector:
dependency: transitive
description:
Expand All @@ -28,7 +28,7 @@ packages:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.1"
clock:
dependency: transitive
description:
Expand Down Expand Up @@ -80,7 +80,7 @@ packages:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.7.0"
path:
dependency: transitive
description:
Expand Down Expand Up @@ -148,7 +148,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
version: "0.4.2"
typed_data:
dependency: transitive
description:
Expand Down