|
@@ -4,6 +4,7 @@ import 'dart:math' as math;
|
|
|
import 'dart:async';
|
|
import 'dart:async';
|
|
|
import 'package:get/get.dart';
|
|
import 'package:get/get.dart';
|
|
|
import 'package:nomo/app/widgets/ix_image.dart';
|
|
import 'package:nomo/app/widgets/ix_image.dart';
|
|
|
|
|
+import 'package:nomo/utils/misc.dart';
|
|
|
|
|
|
|
|
import '../../../constants/assets.dart';
|
|
import '../../../constants/assets.dart';
|
|
|
import '../../../../config/theme/theme_extensions/theme_extension.dart';
|
|
import '../../../../config/theme/theme_extensions/theme_extension.dart';
|
|
@@ -266,7 +267,7 @@ class _ConnectionThemeButtonState extends State<ConnectionThemeButton>
|
|
|
|
|
|
|
|
// 构建圆形按钮背景
|
|
// 构建圆形按钮背景
|
|
|
Widget _buildButtonBackground(ConnectionState state, bool shouldRotate) {
|
|
Widget _buildButtonBackground(ConnectionState state, bool shouldRotate) {
|
|
|
- final size = 170.w;
|
|
|
|
|
|
|
+ final size = isDesktop ? 130.w : 170.w;
|
|
|
|
|
|
|
|
switch (state) {
|
|
switch (state) {
|
|
|
case ConnectionState.disconnected:
|
|
case ConnectionState.disconnected:
|
|
@@ -441,8 +442,8 @@ class _ConnectionThemeButtonState extends State<ConnectionThemeButton>
|
|
|
children: [
|
|
children: [
|
|
|
// 圆形按钮区域
|
|
// 圆形按钮区域
|
|
|
SizedBox(
|
|
SizedBox(
|
|
|
- width: 170.w,
|
|
|
|
|
- height: 170.w,
|
|
|
|
|
|
|
+ width: isDesktop ? 130 : 170.w,
|
|
|
|
|
+ height: isDesktop ? 130 : 170.w,
|
|
|
child: Stack(
|
|
child: Stack(
|
|
|
alignment: Alignment.center,
|
|
alignment: Alignment.center,
|
|
|
children: [
|
|
children: [
|