Skip to content

Commit

Permalink
added image
Browse files Browse the repository at this point in the history
  • Loading branch information
Codebox124 committed Jul 5, 2023
1 parent 642b741 commit a047ba3
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 13 deletions.
Binary file added asset/imgs/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions lib/screens/Logins page/login.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import 'package:flutter/material.dart';

class LoginPage extends StatefulWidget {
const LoginPage({super.key});

@override
State<LoginPage> createState() => _LoginPageState();
}

class _LoginPageState extends State<LoginPage> {
@override
Widget build(BuildContext context) {
return Padding(
padding: const EdgeInsets.all(10),
child: SingleChildScrollView(
child: Column(children: [
Row(
children: [
Icon(Icons.arrow_back_ios, size: 20),
Text(
"Sign In",
style: TextStyle(
color: Colors.black,
fontSize: 20,
),
)
],
),
Image.asset('asset/imgs/logo')
]),
),
);
}
}
37 changes: 26 additions & 11 deletions lib/screens/onboard_screen.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter/material.dart';
import 'package:nexuz/screens/Logins%20page/login.dart';

class OnboardScreen extends StatefulWidget {
const OnboardScreen({super.key});
Expand All @@ -11,18 +12,32 @@ class _OnboardScreenState extends State<OnboardScreen> {
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
width: double.infinity,
height: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
const Color.fromARGB(255, 209, 196, 81),
Color.fromARGB(255, 156, 167, 0)
backgroundColor: Color.fromARGB(255, 97, 223, 101),
bottomNavigationBar: Padding(
padding: const EdgeInsets.all(30),
child: FloatingActionButton.extended(
backgroundColor: Colors.white,
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (context) => LoginPage()));
},
label: Text(
"Get Started",
style: TextStyle(color: Colors.black),
),
),
),
body: Center(
child: Column(
children: [
Image.asset("asset/imgs/logo.png"),
Text(
"OPAY",
style: TextStyle(
color: Colors.white, fontSize: 40, fontWeight: FontWeight.bold),
),
],
begin: Alignment.topRight,
end: Alignment.bottomLeft,
)),
),
),
);
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ flutter:
uses-material-design: true

# To add assets to your application, add an assets section, like this:
# assets:
# - images/a_dot_burr.jpeg
assets:
- asset/imgs/
# - images/a_dot_ham.jpeg

# An image asset can refer to one or more resolution-specific "variants", see
Expand Down

0 comments on commit a047ba3

Please sign in to comment.