-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from mediocre9/development
implemented feedback feature and bug fixes
- Loading branch information
Showing
23 changed files
with
615 additions
and
206 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
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,9 +1,17 @@ | ||
class Routes { | ||
Routes._(); | ||
|
||
static const String auth = '/'; | ||
|
||
static const String bluetoothHome = '/bluetoothHome'; | ||
|
||
static const String bluetoothRemote = '/bluetoothRemote'; | ||
|
||
static const String wifiHome = '/wifiHome'; | ||
|
||
static const String wifiRemote = '/wifiRemote'; | ||
|
||
static const String biometric = '/biometric'; | ||
|
||
static const String feedback = '/feedback'; | ||
} |
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,27 +1,53 @@ | ||
class Strings { | ||
Strings._(); | ||
|
||
static const String appName = 'Smart Link'; | ||
static const String appVersion = 'v0.5.2'; | ||
static const String appDescription = 'IoT Remote Control'; | ||
static const String appLogo = 'assets/images/logo.png'; | ||
static const String bluetoothOnHomeDescription = 'Scan for bluetooth devices'; | ||
static const String bluetoothDiscoveryDescription = 'This may take a few moments to discover nearby devices. Please be patient!'; | ||
static const String gettingPairedDevices = 'Getting paired devices . . .'; | ||
static const String pairUnsuccessful = ""; | ||
static const String noInternet = 'No Internet Connection!'; | ||
static const String bluetoothOff = 'Bluetooth service is off.'; | ||
static const String devicesNotInRange = 'No nearby device(s) available. Try Again!'; | ||
static const String copyright = '(c) Copyright 2023 CUSIT IT & Robotics Engineering Society. All rights reserved.'; | ||
static const String appName = "Smart Link"; | ||
|
||
static const String appVersion = "v0.6.1"; | ||
|
||
static const String appDescription = "IoT Remote Control"; | ||
|
||
static const String appLogo = "assets/images/logo.png"; | ||
|
||
static const String copyright = "(c) Copyright 2023 CUSIT IT & Robotics Society. All rights reserved."; | ||
|
||
static const String permissionInfo = "Allow Smart Link to access Bluetooth and Location permissions on this device?"; | ||
|
||
static const String noInternet = "Unable to connect to the internet."; | ||
|
||
static const String bluetoothOnHomeDescription = "Scan for bluetooth devices"; | ||
|
||
static const String bluetoothDiscoveryDescription = "This may take a few moments to discover nearby devices. Please be patient!"; | ||
|
||
static const String gettingPairedDevices = "Getting paired devices . . ."; | ||
|
||
static const String bluetoothOff = "Bluetooth is disabled!"; | ||
|
||
static const String bluetoothConnected = "Connected!"; | ||
|
||
static const String bluetoothDisconnected = "Disconnected!"; | ||
|
||
static const String endDeviceNotResponding = "End device not responding!"; | ||
|
||
static const String devicesNotInRange = "No nearby devices are available. Try Again!"; | ||
|
||
static const String feedbackPosted = "Thank you for your valuable feedback!"; | ||
|
||
static const String biometricLock = "Locked out due to too many attempts!"; | ||
|
||
static const String biometricPermanent = "Locked out permanently due to too many attempts!"; | ||
|
||
static const String biometricEnrollment = "Please register your fingerprint from your device settings!"; | ||
|
||
static const String biometricNotSupported = "Your device does not have fingerprint support!"; | ||
|
||
static const String microControllerIp = "192.168.4.1"; | ||
|
||
static const String userBlocked = 'Your account has been blocked.'; | ||
static const String googleLogoPath = 'assets/images/google_logo.png'; | ||
static const String radarAnimationPath = 'assets/animations/radar.json'; | ||
static const String signinButtonText = 'Sign in with Google'; | ||
static const String userBlocked = "Account access revoked. Contact support."; | ||
|
||
static const String googleLogoPath = "assets/images/google_logo.png"; | ||
|
||
static const String radarAnimationPath = "assets/animations/radar.json"; | ||
|
||
static const String signinButtonText = "Sign in with Google"; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
abstract class Model { | ||
final String? id; | ||
|
||
Model({required this.id}); | ||
} |
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,40 @@ | ||
import 'package:smart_link/models/model.dart'; | ||
|
||
final class UserFeedback extends Model { | ||
final String email; | ||
final String username; | ||
final String subject; | ||
final String body; | ||
final DateTime submittedDate; | ||
|
||
UserFeedback({ | ||
required super.id, | ||
required this.email, | ||
required this.username, | ||
required this.subject, | ||
required this.body, | ||
required this.submittedDate, | ||
}); | ||
|
||
factory UserFeedback.fromJSON(Map<String, dynamic> data) { | ||
return UserFeedback( | ||
id: data["userId"], | ||
email: data["email"], | ||
username: data["username"], | ||
subject: data["subject"], | ||
body: data["body"], | ||
submittedDate: data["submittedDate"], | ||
); | ||
} | ||
|
||
Map<String, dynamic> toJSON() { | ||
return { | ||
"userId": id, | ||
"username": username, | ||
"submittedDate": submittedDate, | ||
"email": email, | ||
"subject": subject, | ||
"body": body, | ||
}; | ||
} | ||
} |
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.