-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented remembering login data with radio button (#126)
- Loading branch information
1 parent
c1ccf02
commit da9eb61
Showing
6 changed files
with
152 additions
and
20 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
20 changes: 20 additions & 0 deletions
20
mobile/lib/modules/login/models/hive_saved_login_info.model.dart
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,20 @@ | ||
import 'package:hive/hive.dart'; | ||
|
||
part 'hive_saved_login_info.model.g.dart'; | ||
|
||
@HiveType(typeId: 0) | ||
class HiveSavedLoginInfo { | ||
@HiveField(0) | ||
String email; | ||
|
||
@HiveField(1) | ||
String password; | ||
|
||
@HiveField(2) | ||
String serverUrl; | ||
|
||
@HiveField(3) | ||
bool isSaveLogin; | ||
|
||
HiveSavedLoginInfo({required this.email, required this.password, required this.serverUrl, required this.isSaveLogin}); | ||
} |
50 changes: 50 additions & 0 deletions
50
mobile/lib/modules/login/models/hive_saved_login_info.model.g.dart
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