|
|
@@ -10,6 +10,7 @@ import 'package:chicken_farm/pages/home/_profile/clear_cache_button.dart';
|
|
|
import 'package:chicken_farm/pages/home/_profile/config_button.dart';
|
|
|
import 'package:chicken_farm/pages/home/_profile/dict_config_button.dart';
|
|
|
import 'package:chicken_farm/pages/home/_profile/power_config_button.dart';
|
|
|
+import 'package:chicken_farm/pages/home/_profile/win_card_reader_button.dart';
|
|
|
// import 'package:chicken_farm/pages/home/_profile/rfid_config_button.dart';
|
|
|
// import 'package:chicken_farm/pages/home/_profile/scanner_light_button.dart';
|
|
|
import 'package:chicken_farm/pages/home/_profile/logout_button.dart';
|
|
|
@@ -59,14 +60,16 @@ class ProfilePage extends ConsumerWidget {
|
|
|
key: super.key,
|
|
|
body: Padding(
|
|
|
padding: const EdgeInsets.all(20),
|
|
|
- child: Center( // 添加居中组件
|
|
|
+ child: Center(
|
|
|
+ // 添加居中组件
|
|
|
child: SingleChildScrollView(
|
|
|
child: SizedBox(
|
|
|
- width: Platform.isAndroid
|
|
|
- ? MediaQuery.of(context).size.width * 0.8 // 使用屏幕宽度的80%
|
|
|
- : MediaQuery.of(context).size.width > 350
|
|
|
- ? 350 // 限制最大宽度
|
|
|
- : MediaQuery.of(context).size.width,
|
|
|
+ width: Platform.isAndroid
|
|
|
+ ? MediaQuery.of(context).size.width *
|
|
|
+ 0.8 // 使用屏幕宽度的80%
|
|
|
+ : MediaQuery.of(context).size.width > 350
|
|
|
+ ? 350 // 限制最大宽度
|
|
|
+ : MediaQuery.of(context).size.width,
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
@@ -103,6 +106,12 @@ class ProfilePage extends ConsumerWidget {
|
|
|
const SizedBox(height: 20),
|
|
|
const ConfigButton(),
|
|
|
const SizedBox(height: 20),
|
|
|
+ if (!AppConfig.isPda &&
|
|
|
+ !AppConfig.isOffline &&
|
|
|
+ Platform.isWindows) ...[
|
|
|
+ const WinCardReaderButton(),
|
|
|
+ const SizedBox(height: 20),
|
|
|
+ ],
|
|
|
// const RfidConfigButton(),
|
|
|
// const SizedBox(height: 20),
|
|
|
// const ScannerLightButton(),
|
|
|
@@ -131,6 +140,6 @@ class ProfilePage extends ConsumerWidget {
|
|
|
|
|
|
final deviceInfo = Platform.isAndroid ? "$deviceType$mode" : "WIN$mode";
|
|
|
|
|
|
- return 'ChickenFarm $deviceInfo Powered by IWB ©2025 \nVersion: ${AppConfig.appVersion}';
|
|
|
+ return 'ChickenFarm $deviceInfo Powered by IWB ©2026 \nVersion: ${AppConfig.appVersion}';
|
|
|
}
|
|
|
-}
|
|
|
+}
|