fix design issues

merge-requests/1/merge
Fatimah Alshammari 2 years ago
parent a55e4bf84f
commit e2720c7057

@ -49,4 +49,5 @@ class MyColors {
static const Color green9CColor = Color(0xff259CB8); static const Color green9CColor = Color(0xff259CB8);
static const Color green2DColor = Color(0xff32D892); static const Color green2DColor = Color(0xff32D892);
static const Color greyC4Color = Color(0xffC4C4C4); static const Color greyC4Color = Color(0xffC4C4C4);
static const Color grey35Color = Color(0xff535353);
} }

@ -96,7 +96,7 @@ class _MyTeamState extends State<MyTeam> {
focusedBorder: InputBorder.none, focusedBorder: InputBorder.none,
// contentPadding: EdgeInsets.fromLTRB(10, 15, 10, 15), // contentPadding: EdgeInsets.fromLTRB(10, 15, 10, 15),
hintText: LocaleKeys.searchBy.tr() + " $dropdownValue", hintText: LocaleKeys.searchBy.tr() + " $dropdownValue",
hintStyle: TextStyle(fontSize: 14.0, color: MyColors.grey57Color, fontWeight: FontWeight.w600), hintStyle: TextStyle(fontSize: 14.0, color: MyColors.grey3AColor),
), ),
)), )),
Container( Container(
@ -117,9 +117,7 @@ class _MyTeamState extends State<MyTeam> {
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
_textEditingController!.text.isNotEmpty && getEmployeeSListOnSearch.isEmpty _textEditingController!.text.isNotEmpty && getEmployeeSListOnSearch.isEmpty
? Container( ? Utils.getNoDataWidget(context)
child: LocaleKeys.noResultsFound.tr().toText16(color: MyColors.blackColor),
).paddingOnly(top: 10)
: ListView.separated( : ListView.separated(
scrollDirection: Axis.vertical, scrollDirection: Axis.vertical,
shrinkWrap: true, shrinkWrap: true,
@ -141,8 +139,8 @@ class _MyTeamState extends State<MyTeam> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
// "Present".toText13(color: MyColors.greenColor), // "Present".toText13(color: MyColors.greenColor),
"${getEmployeeSListOnSearch[index].eMPLOYEENAME}".toText16(isBold: true, color: MyColors.grey3AColor), "${getEmployeeSListOnSearch[index].eMPLOYEENAME}".toText16(color: MyColors.grey3AColor),
"${getEmployeeSListOnSearch[index].pOSITIONNAME}".toText10(isBold: true, color: MyColors.grey57Color), "${getEmployeeSListOnSearch[index].pOSITIONNAME}".toText10(color: MyColors.grey57Color),
], ],
).expanded, ).expanded,
Column( Column(
@ -179,7 +177,7 @@ class _MyTeamState extends State<MyTeam> {
DropdownButton<String>( DropdownButton<String>(
value: dropdownValue, value: dropdownValue,
icon: const Icon(Icons.keyboard_arrow_down, icon: const Icon(Icons.keyboard_arrow_down,
color: MyColors.grey57Color).paddingOnly(left: 4), color: MyColors.grey35Color).paddingOnly(left: 4),
elevation: 16, elevation: 16,
onChanged: (String? newValue) { onChanged: (String? newValue) {
setState(() { setState(() {
@ -192,8 +190,7 @@ class _MyTeamState extends State<MyTeam> {
child: Text(value), child: Text(value),
); );
}).toList(), }).toList(),
style: TextStyle(fontSize: 14.0, color: MyColors.grey57Color, style: TextStyle(fontSize: 14.0, color: MyColors.grey57Color),
fontWeight: FontWeight.w600),
); );
} }
} }

Loading…
Cancel
Save