From 12a6b6756c3e13cf7517c9fe3e0c7ca0c79a874a Mon Sep 17 00:00:00 2001 From: ENG-CJ Date: Mon, 28 Aug 2023 11:59:02 +0300 Subject: [PATCH] fixes --- lib/main.dart | 2 +- lib/util/profile.dart | 15 ------- lib/views/components/login_mode_profile.dart | 2 +- lib/views/pages/home_page.dart | 45 -------------------- pubspec.lock | 4 +- 5 files changed, 3 insertions(+), 65 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index b373eae..724aabd 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -25,7 +25,7 @@ class JobFinder extends StatelessWidget { scaffoldBackgroundColor: const Color(0xfff4f4f4) ), debugShowCheckedModeBanner: false, - home: OnBoarding(), + home: Home(), ); } } diff --git a/lib/util/profile.dart b/lib/util/profile.dart index d43dc98..c8337a2 100644 --- a/lib/util/profile.dart +++ b/lib/util/profile.dart @@ -5,21 +5,6 @@ class ProfileImage extends StatelessWidget { final Color? color; final String imagePath; final double? paddingAll; - - - const ProfileImage( - {super.key, - required this.imagePath, - this.color, - this.paddingAll, - }); - - @override - Widget build(BuildContext context) { - return CircleAvatar( - radius: 60, - backgroundColor: color ?? Colors.white, - final bool asBackgroundImage; final double radius; const ProfileImage({ diff --git a/lib/views/components/login_mode_profile.dart b/lib/views/components/login_mode_profile.dart index f1a3887..29c679f 100644 --- a/lib/views/components/login_mode_profile.dart +++ b/lib/views/components/login_mode_profile.dart @@ -20,7 +20,7 @@ class LoginModeProfile extends StatelessWidget { children: [ Padding( padding: const EdgeInsets.only(top: 10), - child: ProfileImage(imagePath: "assets/google.png",imgHeight: 20,imgWidth: 20), + child: ProfileImage(imagePath: "assets/google.png"), ), SizedBox(height: 4,), diff --git a/lib/views/pages/home_page.dart b/lib/views/pages/home_page.dart index a6033d0..54caf8e 100644 --- a/lib/views/pages/home_page.dart +++ b/lib/views/pages/home_page.dart @@ -25,51 +25,6 @@ import '../components/job_header.dart'; import '../components/login_mode_profile.dart'; -class Home extends StatelessWidget with BuildListViewJobCard { - const Home({super.key}); - static var categories = [ - "Software Engineering", - "UI/UX Designer", - "Database Admin", - "Graphic Designer", - "Analytical", - "Help Desk" - ]; - static List jobs = [ - Job( - jobTitle: "Agency Business Lead", - corporation: "Google, Inc", - companyLogoPath: "assets/google.png", - jobDescription: - "In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying", - numberOfApplicants: 19, - timePosted: - timeago.format(DateTime.now().subtract(Duration(minutes: 6)))), - Job( - jobTitle: "Software Tester", - corporation: "Afro Tech", - companyLogoPath: "assets/afro.png", - jobDescription: - "In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate", - numberOfApplicants: 100, - timePosted: timeago.format(DateTime.now().subtract(Duration(days: 2)))), - - - Job(jobTitle: "Social Media Marketer", corporation: "Hilaal, Inc", companyLogoPath: "assets/hilal.png", - jobDescription: "In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate", - numberOfApplicants: 300 , - softSkills: ["Design","Teaching","Blender","Copy Writing","Canva"], - about: "We are seeking a talented Social Media Marketer to elevate our brand's online presence and engagement. In this role, you'll be responsible for crafting captivating content, managing social media platforms, and driving meaningful interactions with our target audience. Your creative approach and strategic thinking will play a pivotal role in expanding our brand's influence in the digital landscape. As a Social Media Marketer, you'll have the exciting opportunity to develop and implement dynamic social media strategies across various platforms. Your eye for engaging visuals and ability to craft compelling captions will help us effectively convey our brand's message and values. By staying up-to-date with the latest social media trends, you'll ensure our content remains fresh and relevant. Join our team and shape the way our audience perceives and engages with our brand on social media.", - timePosted: timeago.format(DateTime.now().subtract(Duration(days: 2)))), - Job( - jobTitle: "Web Developer", - corporation: "Tombal ICT", - companyLogoPath: "assets/hilal.png", - jobDescription: - "In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate", - numberOfApplicants: 300, - - timePosted: timeago.format(DateTime.now().subtract(Duration(days: 6)))) class Home extends StatefulWidget { const Home({super.key}); diff --git a/pubspec.lock b/pubspec.lock index 93784ef..d84df23 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -107,7 +107,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.18.1" - js: dependency: transitive description: @@ -124,7 +123,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.0" - lints: dependency: transitive description: @@ -251,5 +249,5 @@ packages: source: hosted version: "2.1.4" sdks: - dart: ">=3.0.6 <4.0.0" + dart: ">=3.0.5 <4.0.0" flutter: ">=1.17.0"