Compare commits
No commits in common. "781d8dfcdffe4ec52317861d8e0f7d9b3dcff962" and "00ec7d262fae8a915d20d6e672c98f776d808a72" have entirely different histories.
781d8dfcdf
...
00ec7d262f
|
|
@ -14,11 +14,13 @@ class PersonalInfo extends StatefulWidget {
|
|||
}
|
||||
|
||||
class _PersonalInfoState extends State<PersonalInfo> {
|
||||
String _name = '', _phone = '', _gender = '', _address = '', _email = '', _password = '';
|
||||
|
||||
String _name = '',
|
||||
_phone = '',
|
||||
_gender = '',
|
||||
_address = '',
|
||||
_email = '',
|
||||
_password = '';
|
||||
bool _isEditing = false; //是否為編輯狀態
|
||||
bool _passwordNotVisible = true;
|
||||
|
||||
final TextEditingController _nameController = TextEditingController();
|
||||
final TextEditingController _phoneController = TextEditingController();
|
||||
final TextEditingController _genderController = TextEditingController();
|
||||
|
|
@ -156,6 +158,8 @@ class _PersonalInfoState extends State<PersonalInfo> {
|
|||
));
|
||||
}
|
||||
|
||||
//頁面
|
||||
|
||||
//頁面
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
|
@ -253,20 +257,6 @@ class _PersonalInfoState extends State<PersonalInfo> {
|
|||
subtitle: _isEditing
|
||||
? TextField(
|
||||
controller: _passwordController,
|
||||
obscureText: _passwordNotVisible,
|
||||
decoration: InputDecoration(
|
||||
suffixIcon: IconButton(
|
||||
icon: Icon(_passwordNotVisible
|
||||
? Icons.visibility
|
||||
: Icons.visibility_off),
|
||||
onPressed: () {
|
||||
setState(
|
||||
() {
|
||||
_passwordNotVisible = !_passwordNotVisible;
|
||||
},
|
||||
);
|
||||
},
|
||||
)),
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
_password = value;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user