Ionic App; Help real estate agents match buyer and seller
Ionic App; Help real estate agents match buyer and seller
Ionic Framework v4.0.0
Angular v7.2.2
KeyboardService
to detect keyboard height manually
<ion-content>
<div
class="flex-column"
[style.margin-bottom] = "kbService.keyboardHeight + 'px'">
</div>
</ion-content>
export class KeyboardService {
keyboardHeight = 0;
constructor() {
window.addEventListener('keyboardWillShow', (event) => {
// Describe your logic which will be run each time when keyboard is about to be shown.
this.keyboardHeight = event['keyboardHeight'];
});
window.addEventListener('keyboardWillHide', () => {
// Describe your logic which will be run each time when keyboard is about to be closed.
this.keyboardHeight = 0;
});
}
}
<app-image-uploader>
<input type="file">
for selecting images AuthService
in app/services/auth/auth.service.ts
User signup, login, signout, …
AuthGuard
in app/guards/auth/auth.guard.ts
ApiService
in app/services/api/api.service.ts
Main interfaces for fetching and writing data to database
<span>
no wrapping ending with ellipse
span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
width: 100%;
}
iOS
<preference name="KeyboardResize" value="false" ></preference>
Android
android:windowSoftInputMode="adjustPan"
Get keyboard height from KeyboardService
and set bottom margin
Prevent it back when leaves the page
Main backend & database for the app
Complete implementing of features