-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integration: integrate the login functionality with the back-end (#29)
* fix: modify the api calling code * feat: use the user real profile data in the drawer * feat: use user data in the drawer and profile header * fix: fix wrong range of status code * REF(Sessions): add update profile pic * fix: wrong body in the forget password request * fix: handle wrong spacing in the login and sign up screens * feat: make the screen name 'No Name' in case of the using not having a name * fix: merge brackets problem * Update main.dart * Update main.dart * fix: add a missing import in the sign up screen --------- Co-authored-by: Bishoywadea <[email protected]>
- Loading branch information
1 parent
1493306
commit 2c2b6c4
Showing
24 changed files
with
524 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
description: This file stores settings for Dart & Flutter DevTools. | ||
documentation: https://docs.flutter.dev/tools/devtools/extensions#configure-extension-enablement-states | ||
extensions: | ||
- provider: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:fluttertoast/fluttertoast.dart'; | ||
|
||
class TelwareToast{ | ||
static String? _message; | ||
|
||
static Future<bool?> showToast({ | ||
required String msg, | ||
Toast? toastLength, | ||
int timeInSecForIosWeb = 1, | ||
double? fontSize, | ||
String? fontAsset, | ||
ToastGravity? gravity, | ||
Color? backgroundColor, | ||
Color? textColor, | ||
bool webShowClose = false, | ||
webBgColor = "linear-gradient(to right, #00b09b, #96c93d)", | ||
webPosition = "right", | ||
}) async { | ||
_message = msg; | ||
return await Fluttertoast.showToast( | ||
msg: msg, | ||
toastLength: toastLength, | ||
timeInSecForIosWeb: timeInSecForIosWeb, | ||
fontSize: fontSize, | ||
fontAsset: fontAsset, | ||
gravity: gravity, | ||
backgroundColor: backgroundColor, | ||
textColor: textColor, | ||
webShowClose: webShowClose, | ||
webBgColor: webBgColor, | ||
webPosition: webPosition, | ||
); | ||
} | ||
|
||
static Future<bool?> cancel() async { | ||
return await Fluttertoast.cancel(); | ||
} | ||
|
||
static String? get message => _message; | ||
|
||
TelwareToast._(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import 'package:telware_cross_platform/core/models/user_model.dart'; | ||
|
||
const UserModel userMock = UserModel( | ||
final UserModel userMock = UserModel( | ||
username: 'mock.user', | ||
screenName: 'Mocka Mocka', | ||
email: '[email protected]', | ||
status: 'verified', | ||
status: 'online', | ||
bio: 'I am a mocking user', | ||
maxFileSize: 30, | ||
automaticDownloadEnable: true, | ||
lastSeenPrivacy: 'recently', | ||
readReceiptsEnablePrivacy: 'enable', | ||
readReceiptsEnablePrivacy: true, | ||
storiesPrivacy: 'private', | ||
picturePrivacy: 'global', | ||
invitePermissionsPrivacy: 'enable', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.