下载新版本

This commit is contained in:
GYJ
2024-12-10 16:58:37 +08:00
parent 36a0e183ff
commit 8cae1ffd7d
9 changed files with 424 additions and 5 deletions

View File

@@ -49,6 +49,8 @@ class HomeViewModel extends BaseUIModel {
Future.delayed(const Duration(milliseconds: 700), () {
_checkLogin();
_checkAppVersion();
});
EventManager.addListener<CallStatusChangeEvent>(this, (event) {
@@ -88,6 +90,10 @@ class HomeViewModel extends BaseUIModel {
yjPrint("is login $flag");
}
_checkAppVersion() {
AppManager.checkAppVersion();
}
void setIndex(int index) {
if (_currentIndex == index) {
return;

View File

@@ -7,10 +7,8 @@ import '../common/base/provider.dart';
class OrderView extends BaseUI {
@override
Widget buildBody(BuildContext context) {
return Container(
child: Center(
child: Text("Order"),
),
return const Center(
child: Text("Order"),
);
}