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

Amira #3

Open
wants to merge 17 commits 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ android {
signingConfig signingConfigs.debug
}
}

ndkVersion "23.1.7779620"
}

flutter {
Expand Down
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/a_automated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/android_cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/apple_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/card1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/company.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/company_background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/company_profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/create job winning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/create_your_cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cvs1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cvs2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/d_developer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/developer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/edit_your_extend_cv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/error_image (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/error_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/facebook_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/google_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/grammar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/grammar_check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/graphic_design.png
Binary file added assets/images/job_applicants.png
Binary file added assets/images/linkedIn_logo.png
Binary file added assets/images/medical_field.png
Binary file added assets/images/meeting.jpeg
Binary file added assets/images/modern.png
Binary file added assets/images/my_cv1.png
Binary file added assets/images/my_cv2.png
Binary file added assets/images/person1.png
Binary file added assets/images/person2.png
Binary file added assets/images/person3.png
Binary file added assets/images/person4.png
Binary file added assets/images/person5.png
Binary file added assets/images/person6.png
Binary file added assets/images/person7.png
Binary file added assets/images/person8.png
Binary file added assets/images/professional.png
Binary file added assets/images/profile_photo.png
Binary file added assets/images/requirements.png
Binary file added assets/images/search.png
Binary file added assets/images/technical_or_general.png
Binary file added assets/images/ui_ux_cv.png
Binary file added assets/images/user_profile_image.jpeg
37 changes: 37 additions & 0 deletions lib/company/company_layout/company_layout.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import 'package:cvito/some_helpers/constants/constants.dart';
import 'package:cvito/some_helpers/cubit/cubit.dart';
import 'package:cvito/some_helpers/cubit/states.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';

class CompanyLayoutScreen extends StatelessWidget {
static const String id = 'WelcomeScreen';

const CompanyLayoutScreen({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
return BlocProvider(
create: (context) => CVCubit(),
child: BlocConsumer<CVCubit, CVStates>(
listener: (context, state) {},
builder: (context, state) {
var cubit = CVCubit.get(context);
return Scaffold(
backgroundColor: Colors.white,
body: cubit.screens[cubit.currentBottomIndex],
bottomNavigationBar: BottomNavigationBar(
unselectedItemColor: const Color(0xff828282),
selectedItemColor: kBasicColor,
currentIndex: cubit.currentBottomIndex,
onTap: (int value) {
cubit.changeBottomNavBarIndex(value);
},
type: BottomNavigationBarType.fixed,
items: cubit.bottomItems,
),
);
},
));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
import 'package:cvito/some_helpers/constants/constants.dart';
import 'package:cvito/some_helpers/constants/sized_config.dart';
import 'package:cvito/company/company_layout/company_modules/company_performance_screen.dart';
import 'package:cvito/company/company_layout/company_modules/company_software_company_module/company_software_company_screen.dart';
import 'package:cvito/company/company_layout/custom_widgets/custom_card.dart';
import 'package:cvito/company/company_layout/custom_widgets/default_form_field.dart';
import 'package:cvito/company/company_layout/custom_widgets/line_chart_widget.dart';
import 'package:cvito/utilities.dart';
import 'package:flutter/material.dart';

class CompanyHomeScreen extends StatelessWidget {
const CompanyHomeScreen({Key? key}) : super(key: key);
static const String id = 'WelcomeScreen';

@override
Widget build(BuildContext context) {
SizeConfig().init(context);
TextEditingController searchController = TextEditingController();
return Scaffold(
backgroundColor: Colors.white,
body: SingleChildScrollView(
physics: const BouncingScrollPhysics(),
child: SafeArea(
child: Padding(
padding:
const EdgeInsets.symmetric(horizontal: 10.0, vertical: 20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
children: [
InkWell(
child: const CircleAvatar(
backgroundColor: kBasicColor,
radius: 25,
backgroundImage:
AssetImage('assets/images/company.png' ),
),
// assets/images/requirements.png
onTap: (){
navigateTo(context: context, widget: SoftwareCompanyScreen());
print('Company');
},
),
SizedBox(width: MediaQuery.of(context).size.width / 20),

///==========================================================
///search bar
Expanded(
child: defaultTextFormField(
controller: searchController,
type: TextInputType.text,
onChanged: () {},
label: "Search",
prefix: Icons.search),
),
],
),
// Spacer(),

///==============================================================
/// dashboard text
const Padding(
padding: EdgeInsets.only(top: 15.0),
child: Text(
'Dashboard',
style: TextStyle(
letterSpacing: 1,
color: Color(0xff4F4F4F),
fontWeight: FontWeight.bold,
fontSize: 25),
),
),

///==============================================================
///cards
Row(
children: [
CustomCard(imageLink: 'assets/images/card1.png'),
SizedBox(width: MediaQuery.of(context).size.width / 20),
CustomCard(imageLink: 'assets/images/requirements.png')
],
),

///=============================================================
///job description container
Padding(
padding: const EdgeInsets.symmetric(vertical: 10.0),
child: Container(
padding: const EdgeInsets.fromLTRB(15, 15, 15, 15),
width: SizeConfig.screenWidth,
child: Row(mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: const [
Text(
'Job Applicants',
style: TextStyle(color: kCustomBlack, fontWeight: FontWeight.w700, fontSize: 15.0),
),
SizedBox(height:5.0 ,),
Text(
"See your job applicants here! \nApplicants CVs Matched With Your Job.",
style: TextStyle(color: kCustomBlack, fontWeight: FontWeight.w400, fontSize: 11.0),
),
],
),
SizedBox(width: getProportionateScreenWidth(10),),
const Expanded(child: Image(image: AssetImage('assets/images/job_applicants.png',),))
],
),
decoration: BoxDecoration(
color: Colors.grey.shade300,
borderRadius: BorderRadius.circular(5.0),
),
),
),

///==============================================================
///Row of ...Results, view details
Padding(
padding: const EdgeInsets.only(bottom: 30.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
const Text(
'Rank',
style: TextStyle(
color: Colors.grey,
fontWeight: FontWeight.bold,
fontSize: 20),
),
const Spacer(),
TextButton(
onPressed: () {
navigateTo(
context: context, widget: CompanyPerformanceScreen());
},
child: const Icon(Icons.arrow_forward_ios_sharp))
],
),
),

///==============================================================
///Rating Graph
Container(
color: Colors.transparent,
width: MediaQuery.of(context).size.width,
height: MediaQuery.of(context).size.height / 2.5,
child: LineChartWidget(),
)
],
),
),
),
),
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import 'package:cvito/company/company_layout/company_modules/company_software_company_module/company_software_company_screen.dart';
import 'package:cvito/some_helpers/constants/constants.dart';
import 'package:cvito/some_helpers/cubit/cubit.dart';
import 'package:cvito/some_helpers/cubit/states.dart';
import 'package:cvito/company/company_layout/custom_widgets/custom_list_tile_messages.dart';
import 'package:cvito/company/company_layout/custom_widgets/custom_top_bar.dart';
import 'package:cvito/company/company_layout/custom_widgets/default_form_field.dart';
import 'package:cvito/utilities.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:flutter_slidable/flutter_slidable.dart';

class CompanyMessagesScreen extends StatelessWidget {

TextEditingController messagesSearchController = TextEditingController();

@override
Widget build(BuildContext context) {
return Scaffold(
body: SingleChildScrollView(
physics: const BouncingScrollPhysics(),
child: SafeArea(
maintainBottomViewPadding: true,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
///=============================================================
///chats bar
CustomTopBar(
title: 'Chats',
function: (){
navigateTo(context: context, widget: SoftwareCompanyScreen());
},
imageLink: 'assets/images/profile_photo.png',
color: kCustomBlack,
),

///=============================================================
///search bar
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 16.0, vertical: 16.0),
child: defaultTextFormField(
controller: messagesSearchController,
type: TextInputType.text,
onChanged: () {},
label: 'Search',
prefix: Icons.search),
),


///=============================================================
///list tiles for chats
BlocProvider(
create: (BuildContext context) => CVCubit(),
child: BlocConsumer<CVCubit, CVStates>(
listener: (context, state) {},
builder: (context, state) {
CVCubit cubit = CVCubit.get(context);
return ListView.separated(
physics: const BouncingScrollPhysics(),
scrollDirection: Axis.vertical,
shrinkWrap: true,
itemCount: 7,
itemBuilder: (context, index) {
return Slidable(
key: ValueKey(index),
child: CustomListTileMessages(
user: cubit.chatUsers[index],
imageLink: cubit.UserImageLinks[index],
chatTime: cubit.UserChatTimes[index],
),

/// start actions swap to right
startActionPane: ActionPane(
dismissible: DismissiblePane(
onDismissed: () {
cubit.deleteChatItem(context, index);
},
),
extentRatio: 0.5,
motion: const StretchMotion(),
children: [
// A SlidableAction can have an icon and/or a label.

///=================================================
///delete
SlidableAction(
onPressed: (BuildContext context) {
debugPrint('delete');
},
backgroundColor: const Color(0xFFFE4A49),
foregroundColor: Colors.white,
icon: Icons.delete,
label: 'Delete',
),

SlidableAction(
onPressed: (BuildContext context) {
ScaffoldMessenger.of(context)
.showSnackBar(
SnackBar(
content: Text(
'the ${cubit.chatUsers[index]} chat is muted'),
duration:
const Duration(seconds: 1),
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(10)))),
);
debugPrint('mute');
},
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
icon: Icons.volume_off,
label: 'Mute',
),
],
),
);
},
separatorBuilder: (context, index) {
return const SizedBox();
});
},
)),
],
),
),
),

///=======================================================================
///edit button
floatingActionButton: SizedBox(
width: 50.0,
height: 50.0,
child: FloatingActionButton(
backgroundColor: kBasicColor,
shape:
RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0)),
onPressed: () {},
child: const Icon(
Icons.edit_outlined,
size: 25,
),
),
),
);
}
}
Loading