Skip to content

Commit

Permalink
final pre-release ui test mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ENG-CJ committed Aug 28, 2023
2 parents 12a6b67 + a706b23 commit 6e57b71
Show file tree
Hide file tree
Showing 12 changed files with 838 additions and 131 deletions.
Binary file added assets/img_holder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion lib/consts/menus_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ final List<Map<String,dynamic>> menus=[
"menuIcon": FaIcon(FontAwesomeIcons.house),
"menuTitle": "Home",
"trailing": FaIcon(FontAwesomeIcons.angleRight),
"onClick" : ()=> print('Hello Clciked From Map')
},
{
"menuIcon": FaIcon(FontAwesomeIcons.bookJournalWhills),
Expand Down
36 changes: 35 additions & 1 deletion lib/consts/texts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,38 @@ const tLanguages = "Languages";
const tOtherSkills= "Other Skills";
const tBio= "bio";

const tSaveBtn= "Save";
const tSaveBtn= "Save";

//? -> User Registration
String signUpTxt = "Sign Up";
const tPassTxt = "Password";
const tRegBtn = "Save";
const welcomeTxt = "Almost there, please enter your credentials \nto continue.";

const signUpFullNameTft = "Enter your fullname";
const signUpEmailTft = "Enter your e-mail";
const signUpPasswordTft = "Enter your e-mail";
const tSelectCity = "Enter City";
const signUpTermsTxt = "Agree to our";
const signUpConditionTxt = "I agree to the";
const tTermsAndConditions = "Terms of service";
const signUpLoginTxt = "Login";
const signUpHaveAnAccountTxt = "Already have an account?";
const signUpWithGoogle = "Sign in with Google";
const signUpWithApple = "Sign up with Apple";
const signUpWithFacebook = "Sign up with Facebook";

//? -> Company Registration
String comRegTitle = "Welcome";
String comSubTitle = "Enter Company or individual credentials to proceed";

String comName = "Enter Company Name";
String comEmail = "example@companyName.com";
String comAddress = "Enter Address of the company";
String comPhone = "Enter phone number of company";
String comCity = "Enter City e.g Mogadishu";
String comCountry = "Enter Country e.g Somalia";


String comAddresses = "Location:";
String comIndustry = "Industry Type:";
5 changes: 4 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import 'package:job_finder/views/pages/applied_page.dart';
import 'package:job_finder/views/pages/home_page.dart';
import 'package:job_finder/views/pages/login_page.dart';
import 'package:job_finder/views/pages/on_boarding.dart';
import 'package:job_finder/views/pages/registrations/conpany.dart';
import 'package:job_finder/views/pages/registrations/user_reg.dart';
import 'package:job_finder/views/pages/user_type_page.dart';

import 'consts/colors.dart';
Expand All @@ -25,7 +27,8 @@ class JobFinder extends StatelessWidget {
scaffoldBackgroundColor: const Color(0xfff4f4f4)
),
debugShowCheckedModeBanner: false,
home: Home(),
home: OnBoarding(),

);
}
}
Expand Down
44 changes: 44 additions & 0 deletions lib/mixins/messages.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:job_finder/util/buton.dart';
import 'package:job_finder/util/helpers/text_helper.dart';
import 'package:job_finder/util/text.dart';

import '../consts/colors.dart';
import '../util/icon_text.dart';

mixin Messages{

Expand Down Expand Up @@ -91,5 +93,47 @@ mixin Messages{
}


AlertDialog showInfo(BuildContext context,String message,[String infoTitle="Job Finder",void Function()? onOk]){
return AlertDialog(
title:IconText(icon: FontAwesomeIcons.info,iconLabel: infoTitle),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(17)
),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
CText(text: message,
decorations: TextDecorations(
color: colors['secondary']!.withOpacity(0.8) as Color,
fontSize: 17,
family: "Poppins SemiBold",
height: 1.3
),)
],
),
actions: [
CButton(
onClicked: (){
if(onOk!=null) {
onOk();

}
else {
Navigator.pop(context);
}
},
backgroundColor: colors['primary'] as Color,
widget: Center(child: CText(text: "Ok",
decorations: TextDecorations(
color: colors['white-color'] as Color,
family: "Poppins SemiBold"
),
))),
],
);
}



}
61 changes: 61 additions & 0 deletions lib/util/helpers/custom_text_field.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:job_finder/mixins/input_border_decoration.dart';
import '../../consts/colors.dart';
import '../../mixins/messages.dart';
class CustomTextField extends StatelessWidget
with TextFieldBorderDecorator, Messages {
const CustomTextField({
Key? key,
required this.txtInputType,
required this.hintText,
required this.prefixIcon,
this.obscureTxt,
this.isHidenTxt,
this.showOrHidePassword,
});

final TextInputType txtInputType;
final String hintText;
final Icon prefixIcon;
final bool? obscureTxt;
final bool? isHidenTxt;
final VoidCallback? showOrHidePassword;

@override
Widget build(BuildContext context) {
bool isPasswordType = txtInputType == TextInputType.visiblePassword;

return Container(
margin: EdgeInsets.symmetric(horizontal: 10),
decoration: BoxDecoration(
color: Colors.grey[300],
borderRadius: BorderRadius.circular(4),
),
child: TextFormField(
keyboardType: txtInputType,
textAlign: TextAlign.start,
obscureText: obscureTxt ?? false,
decoration: InputDecoration(
contentPadding: EdgeInsets.fromLTRB(10, 14, 10, 10),
border: InputBorder.none,
focusedBorder: InputBorder.none,
hintText: hintText,

suffixIcon: isPasswordType
? (isHidenTxt ?? false
? IconButton(
icon: FaIcon(FontAwesomeIcons.eye),
onPressed: showOrHidePassword,
)
: IconButton(
icon: FaIcon(FontAwesomeIcons.eyeSlash),
onPressed: showOrHidePassword,
))
: null,
prefixIcon: prefixIcon,
),
),
);
}
}
Loading

0 comments on commit 6e57b71

Please sign in to comment.