opt import

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-21 12:12:34 +08:00
parent 57bd7de605
commit 5795122510
95 changed files with 142 additions and 176 deletions

View File

@@ -1,6 +1,5 @@
import 'dart:async';
import 'dart:async' show Timer;
import 'dart:math' as math;
import 'dart:math' show max;
import 'package:PiliPlus/common/assets.dart';
import 'package:PiliPlus/common/widgets/scroll_physics.dart';
@@ -405,7 +404,7 @@ class _PayCoinsPageState extends State<PayCoinsPage>
const SizedBox(height: 10),
Center(
child: Text(
'${_coins != null ? '硬币余额:${max(0.0, _coins.toDouble().toPrecision(1))}' : ''}${widget.hasCoin ? '${_coins != null ? '' : ''}已投1枚硬币' : ''}',
'${_coins != null ? '硬币余额:${math.max(0.0, _coins.toDouble().toPrecision(1))}' : ''}${widget.hasCoin ? '${_coins != null ? '' : ''}已投1枚硬币' : ''}',
style: const TextStyle(color: Colors.white, fontSize: 13),
),
),