Compare commits
2 Commits
5730659982
...
10d856208d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
10d856208d | ||
|
|
d4033bd018 |
|
|
@ -1,8 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
|
|
||||||
// Import the pages
|
|
||||||
import 'HomePage.dart';
|
|
||||||
import 'HistoricalRecord.dart';
|
import 'HistoricalRecord.dart';
|
||||||
import 'KnowledgePage.dart';
|
import 'KnowledgePage.dart';
|
||||||
import 'MessagePage.dart';
|
import 'MessagePage.dart';
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
// import 'dart:html';
|
// import 'dart:html';
|
||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:topic/HistoricalRecord.dart';
|
|
||||||
import 'package:topic/PersonalInfo.dart';
|
|
||||||
import 'package:topic/KnowledgePage.dart';
|
|
||||||
import 'package:topic/MessagePage.dart';
|
|
||||||
import 'package:topic/TryPage.dart';
|
import 'package:topic/TryPage.dart';
|
||||||
import 'package:webview_flutter/webview_flutter.dart';
|
import 'package:webview_flutter/webview_flutter.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
|
||||||
import 'package:topic/main.dart';
|
|
||||||
import 'package:topic/HomePage.dart';
|
import 'package:topic/HomePage.dart';
|
||||||
import 'package:topic/HistoricalRecord.dart';
|
|
||||||
import 'package:topic/PersonalInfo.dart';
|
|
||||||
import 'package:topic/MessagePage.dart';
|
|
||||||
|
|
||||||
import 'BottomNavBar.dart';
|
|
||||||
/*void main() {
|
/*void main() {
|
||||||
runApp(MaterialApp(
|
runApp(MaterialApp(
|
||||||
home: KnowledgePage(),
|
home: KnowledgePage(),
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:topic/HomePage.dart';
|
|
||||||
import 'package:topic/HistoricalRecord.dart';
|
|
||||||
import 'package:topic/PersonalInfo.dart';
|
|
||||||
import 'package:topic/KnowledgePage.dart';
|
|
||||||
import 'package:mysql_client/mysql_client.dart';
|
import 'package:mysql_client/mysql_client.dart';
|
||||||
|
|
||||||
import 'BottomNavBar.dart';
|
|
||||||
|
|
||||||
class MessagePage extends StatefulWidget {
|
class MessagePage extends StatefulWidget {
|
||||||
final String email; // 接收來自上個頁面的 email
|
final String email; // 接收來自上個頁面的 email
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,9 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/rendering.dart';
|
import 'package:mysql_client/mysql_client.dart';
|
||||||
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
import 'package:persistent_bottom_nav_bar_v2/persistent_bottom_nav_bar_v2.dart';
|
||||||
import 'package:shared_preferences/shared_preferences.dart';
|
import 'package:shared_preferences/shared_preferences.dart';
|
||||||
import 'package:topic/BottomNavBar.dart';
|
|
||||||
import 'package:topic/NoSwipeBackRoute.dart';
|
import 'package:topic/NoSwipeBackRoute.dart';
|
||||||
import 'package:topic/main.dart';
|
import 'package:topic/main.dart';
|
||||||
import 'package:topic/HomePage.dart';
|
|
||||||
import 'package:topic/HistoricalRecord.dart';
|
|
||||||
import 'package:topic/KnowledgePage.dart';
|
|
||||||
import 'package:topic/MessagePage.dart';
|
|
||||||
import 'package:mysql_client/mysql_client.dart';
|
|
||||||
import 'package:http/http.dart' as http;
|
|
||||||
/*void main() {
|
/*void main() {
|
||||||
runApp(MaterialApp(
|
runApp(MaterialApp(
|
||||||
home: PersonalInfo(),
|
home: PersonalInfo(),
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
final TextEditingController _passwordController = TextEditingController();
|
final TextEditingController _passwordController = TextEditingController();
|
||||||
final TextEditingController _codeController = TextEditingController();
|
final TextEditingController _codeController = TextEditingController();
|
||||||
|
|
||||||
|
bool _passwordNotVisible = true;
|
||||||
bool _isButtonEnabled = true;
|
bool _isButtonEnabled = true;
|
||||||
int _seconds = 60;
|
int _seconds = 60;
|
||||||
Timer? _timer;
|
Timer? _timer;
|
||||||
|
|
@ -228,9 +229,21 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder(),
|
border: OutlineInputBorder(),
|
||||||
prefixIcon: Icon(Icons.lock_outlined),
|
prefixIcon: Icon(Icons.lock_outlined),
|
||||||
|
suffixIcon: IconButton(
|
||||||
|
icon: Icon(_passwordNotVisible
|
||||||
|
? Icons.visibility
|
||||||
|
: Icons.visibility_off),
|
||||||
|
onPressed: () {
|
||||||
|
setState(
|
||||||
|
() {
|
||||||
|
_passwordNotVisible = !_passwordNotVisible;
|
||||||
|
},
|
||||||
|
);
|
||||||
|
},
|
||||||
|
),
|
||||||
labelText: '密碼',
|
labelText: '密碼',
|
||||||
),
|
),
|
||||||
obscureText: true,
|
obscureText: _passwordNotVisible,
|
||||||
),
|
),
|
||||||
SizedBox(height: 20),
|
SizedBox(height: 20),
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
debugPaintSizeEnabled=false;
|
debugPaintSizeEnabled=false;
|
||||||
//by use PopScope and disable can Pop avoid android user pop back by back button
|
//by use PopScope and disable can Pop avoid android user pop back by back button
|
||||||
return PopScope(
|
return PopScope(
|
||||||
|
canPop: false,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
//appBar: AppBar(
|
//appBar: AppBar(
|
||||||
//title: Text('Demo'),
|
//title: Text('Demo'),
|
||||||
|
|
@ -186,7 +187,6 @@ class _LoginPageState extends State<LoginPage> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
canPop: false,
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
void loginBtn() async {
|
void loginBtn() async {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user