This commit is contained in:
sion
2026-03-26 01:35:51 +08:00
parent 396b81d6d9
commit 54178e196e
147 changed files with 9 additions and 212431 deletions

View File

@@ -399,9 +399,9 @@ class _TradeAccountCard extends StatelessWidget {
],
),
SizedBox(height: AppSpacing.md),
// 总市值
// 余额
Text(
'总市值 (USDT)',
'余额 (USDT)',
style: TextStyle(
fontSize: 11,
color: colorScheme.onSurfaceVariant,

View File

@@ -176,8 +176,11 @@ class _LoginPageState extends State<LoginPage> {
}
void _navigateToMainPage() {
// 使用 Navigator,让 main.dart 中的 Consumer<AuthProvider> 自动处理页面切换
// 登录成功后auth.isLoggedIn 会变为 trueConsumer 会自动显示 MainPage
// 使用 Navigator 跳转到主页面,替换当前页面
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (context) => const MainPage()),
(route) => false,
);
}
void _navigateToRegister() {

View File

@@ -582,6 +582,7 @@ class _TradeForm extends StatelessWidget {
),
child: TextField(
controller: controller,
enabled: false, // 价格不允许修改,使用当前币种的市场价格
keyboardType: const TextInputType.numberWithOptions(decimal: true),
style: GoogleFonts.spaceGrotesk(
fontSize: 20,