From c8a710a2af6223b202e6502da186893a056d8e86 Mon Sep 17 00:00:00 2001 From: codebox124 Date: Wed, 5 Jul 2023 13:52:28 -0700 Subject: [PATCH] updated --- {asset => assets}/imgs/logo.png | Bin lib/screens/Logins page/login.dart | 9 ++++++++- lib/screens/onboard_screen.dart | 21 ++++++++++++--------- pubspec.yaml | 4 ++-- 4 files changed, 22 insertions(+), 12 deletions(-) rename {asset => assets}/imgs/logo.png (100%) diff --git a/asset/imgs/logo.png b/assets/imgs/logo.png similarity index 100% rename from asset/imgs/logo.png rename to assets/imgs/logo.png diff --git a/lib/screens/Logins page/login.dart b/lib/screens/Logins page/login.dart index c6d3175..c2d97e6 100644 --- a/lib/screens/Logins page/login.dart +++ b/lib/screens/Logins page/login.dart @@ -26,7 +26,14 @@ class _LoginPageState extends State { ) ], ), - Image.asset('asset/imgs/logo') + Padding( + padding: const EdgeInsets.all(20), + child: Image.asset('assets/imgs/logo.png', width: 100), + ), + TextFormField( + + ), + ]), ), ); diff --git a/lib/screens/onboard_screen.dart b/lib/screens/onboard_screen.dart index 99ba508..a55e8c1 100644 --- a/lib/screens/onboard_screen.dart +++ b/lib/screens/onboard_screen.dart @@ -28,15 +28,18 @@ class _OnboardScreenState extends State { ), ), body: Center( - child: Column( - children: [ - Image.asset("asset/imgs/logo.png"), - Text( - "OPAY", - style: TextStyle( - color: Colors.white, fontSize: 40, fontWeight: FontWeight.bold), - ), - ], + child: Padding( + padding: const EdgeInsets.only(top: 40), + child: Column( + children: [ + Image.asset("assets/imgs/logo.png"), + Text( + "OPAY", + style: TextStyle( + color: Colors.white, fontSize: 40, fontWeight: FontWeight.bold), + ), + ], + ), ), ), ); diff --git a/pubspec.yaml b/pubspec.yaml index 5b64d08..3272282 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -59,8 +59,8 @@ flutter: uses-material-design: true # To add assets to your application, add an assets section, like this: -assets: - - asset/imgs/ + assets: + - assets/imgs/ # - images/a_dot_ham.jpeg # An image asset can refer to one or more resolution-specific "variants", see