Compare commits
No commits in common. "57306599824c1d95967446685a58fdf852e4e637" and "98bbd6b4b66eb5ac17713e010c5d5a62310a3498" have entirely different histories.
5730659982
...
98bbd6b4b6
|
|
@ -4,7 +4,6 @@ import 'dart:async';
|
|||
import 'dart:math';
|
||||
import 'package:mailer/mailer.dart';
|
||||
import 'package:mailer/smtp_server.dart';
|
||||
import 'package:validators/validators.dart' as validator;
|
||||
|
||||
void main() {
|
||||
runApp(MaterialApp(
|
||||
|
|
@ -101,11 +100,6 @@ class _RegisterPageState extends State<RegisterPage> {
|
|||
SnackBar(content: Text('請輸入電子信箱地址')),
|
||||
);
|
||||
return;
|
||||
} else if (!validator.isEmail(email)) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text('請輸入正確的電子信箱')),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
_generatedCode = _generateVerificationCode();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ class LoginPage extends StatefulWidget {//ful會改變
|
|||
class _LoginPageState extends State<LoginPage> {
|
||||
final TextEditingController _emailController = TextEditingController();
|
||||
final TextEditingController _ageController = TextEditingController();
|
||||
bool _passwordNotVisible = true;
|
||||
|
||||
@override
|
||||
void initState() {//初始化
|
||||
|
|
@ -117,21 +116,9 @@ class _LoginPageState extends State<LoginPage> {
|
|||
decoration: InputDecoration(
|
||||
border: OutlineInputBorder(),
|
||||
prefixIcon: Icon(Icons.lock_outlined),
|
||||
suffixIcon: IconButton(
|
||||
icon: Icon(_passwordNotVisible
|
||||
? Icons.visibility
|
||||
: Icons.visibility_off),
|
||||
onPressed: () {
|
||||
setState(
|
||||
() {
|
||||
_passwordNotVisible = !_passwordNotVisible;
|
||||
},
|
||||
);
|
||||
},
|
||||
),
|
||||
labelText: '密碼',
|
||||
),
|
||||
obscureText: _passwordNotVisible,
|
||||
obscureText: true,
|
||||
),//密碼
|
||||
SizedBox(height: 20),
|
||||
ElevatedButton(
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ dependencies:
|
|||
webview_flutter: ^4.8.0
|
||||
persistent_bottom_nav_bar_v2: ^5.3.0
|
||||
shared_preferences: ^2.2.3
|
||||
validators: ^3.0.0
|
||||
|
||||
dev_dependencies:
|
||||
flutter_test:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user