mark attendance session expire fixed

merge-requests/137/head
Sikander Saleem 3 years ago
parent 03ae216b69
commit f8ae5b0987

@ -35,12 +35,6 @@ class ChatApiClient {
}, },
); );
print({
"employeeNumber": AppState().memberInformationList!.eMPLOYEENUMBER.toString(),
"password": "FxIu26rWIKoF8n6mpbOmAjDLphzFGmpG"
// "isMobile": true,
// "deviceToken": AppState().deviceNotificationToken
});
if (!kReleaseMode) { if (!kReleaseMode) {
logger.i("login-res: " + response.body); logger.i("login-res: " + response.body);
} }

@ -1415,9 +1415,6 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
void inputBoxDirection(String val) { void inputBoxDirection(String val) {
if (val.isNotEmpty) { if (val.isNotEmpty) {
isTextMsg = true; isTextMsg = true;
} else {
isTextMsg = false;
}
RegExp exp = RegExp("[a-zA-Z]"); RegExp exp = RegExp("[a-zA-Z]");
if (exp.hasMatch(val.substring(val.length - 1)) && val.substring(val.length - 1) != " ") { if (exp.hasMatch(val.substring(val.length - 1)) && val.substring(val.length - 1) != " ") {
textDirection = Material.TextDirection.ltr; textDirection = Material.TextDirection.ltr;
@ -1426,6 +1423,9 @@ class ChatProviderModel with ChangeNotifier, DiagnosticableTreeMixin {
textDirection = Material.TextDirection.rtl; textDirection = Material.TextDirection.rtl;
notifyListeners(); notifyListeners();
} }
} else {
isTextMsg = false;
}
} }
Material.TextDirection getTextDirection(String v) { Material.TextDirection getTextDirection(String v) {

@ -256,7 +256,10 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
textDirection: m.textDirection, textDirection: m.textDirection,
controller: m.message, controller: m.message,
decoration: InputDecoration( decoration: InputDecoration(
hintText: m.isAttachmentMsg ? m.selectedFile.path.split("/").last : LocaleKeys.typeheretoreply.tr(), hintTextDirection: m.textDirection,
hintText: m.isAttachmentMsg
? m.selectedFile.path.split("/").last
: m.textDirection.name == "rtl" ? "اكتب هنا للرد" :LocaleKeys.typeheretoreply.tr(),
hintStyle: TextStyle(color: m.isAttachmentMsg ? MyColors.darkTextColor : MyColors.grey98Color, fontSize: 14), hintStyle: TextStyle(color: m.isAttachmentMsg ? MyColors.darkTextColor : MyColors.grey98Color, fontSize: 14),
border: InputBorder.none, border: InputBorder.none,
focusedBorder: InputBorder.none, focusedBorder: InputBorder.none,

@ -108,7 +108,7 @@ dependencies:
dependency_overrides: dependency_overrides:
#firebase_core_platform_interface: 4.5.1 firebase_core_platform_interface: 4.5.1
dev_dependencies: dev_dependencies:

Loading…
Cancel
Save