提交 900a5017 authored 作者: yueweilu's avatar yueweilu

返回刷新我的界面数据

上级 b77693f1
......@@ -89,7 +89,7 @@ class LoginController extends GetxController {
/// 测试账号
if (kDebugMode) {
phoneInput.text = '18810760819';
passwordInput.text = '12345678';
passwordInput.text = '1234567m';
// phoneInput.text = '17311837355';
// passwordInput.text = '12345678';
}
......
......@@ -10,7 +10,12 @@ class UserDiscussPage extends StatefulWidget {
class _UserDiscussPageState extends State<UserDiscussPage> {
@override
Widget build(BuildContext context) {
return GetBuilder<UserDiscussController>(
return WillPopScope(
onWillPop: () async {
context.pop(true);
return false;
},
child: GetBuilder<UserDiscussController>(
init: UserDiscussController(),
builder:(controller)=> Scaffold(
appBar: AppBar(
......@@ -45,6 +50,7 @@ class _UserDiscussPageState extends State<UserDiscussPage> {
],
),
),
),
);
}
}
......@@ -10,7 +10,12 @@ class UserNotePage extends StatefulWidget {
class _UserNotePageState extends State<UserNotePage> {
@override
Widget build(BuildContext context) {
return GetBuilder<UserNoteController>(
return WillPopScope(
onWillPop: () async {
context.pop(true);
return false;
},
child: GetBuilder<UserNoteController>(
init: UserNoteController(),
builder:(controller)=> Scaffold(
appBar: AppBar(
......@@ -50,6 +55,7 @@ class _UserNotePageState extends State<UserNotePage> {
],
),
),
),
);
}
}
......@@ -10,7 +10,12 @@ class UserWrongPage extends StatefulWidget {
class _UserWrongPageState extends State<UserWrongPage> {
@override
Widget build(BuildContext context) {
return GetBuilder<UserWrongController>(
return WillPopScope(
onWillPop: () async {
context.pop(true);
return false;
},
child: GetBuilder<UserWrongController>(
init: UserWrongController(),
builder:(controller)=> Scaffold(
appBar: AppBar(
......@@ -45,6 +50,7 @@ class _UserWrongPageState extends State<UserWrongPage> {
],
),
),
),
);
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论