feat: 13. 国家节点列表用4・4方块展示节点连接状态

14.禁止横屏
This commit is contained in:
speakeloudest 2025-11-30 01:36:26 -08:00
parent 95f8f3afbe
commit d2ea8436f9
3 changed files with 24 additions and 7 deletions

View File

@ -539,12 +539,22 @@ class HINodeListView extends GetView<HINodeListController> {
} }
// 4. Text // 4. Text
return Text( // return Text(
delayText, // delayText,
style: KrAppTextStyle( // style: KrAppTextStyle(
fontSize: 10, // fontSize: 10,
color: delayColor, // 使 // color: delayColor, // 使
fontWeight: FontWeight.w500, // fontWeight: FontWeight.w500,
// ),
// );
return Container(
width: 4,
height: 4,
// 使 BoxDecoration
decoration: BoxDecoration(
color: delayColor, // 使
// shape: BoxShape.circle, // 使 BoxShape.rectangle
), ),
); );
}), }),

View File

@ -3,6 +3,7 @@ import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// import 'package:flutter_easyloading/flutter_easyloading.dart'; // // import 'package:flutter_easyloading/flutter_easyloading.dart'; //
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter/services.dart';
// import 'package:flutter_map_tile_caching/flutter_map_tile_caching.dart'; // import 'package:flutter_map_tile_caching/flutter_map_tile_caching.dart';
@ -37,6 +38,12 @@ void main() async {
// Flutter // Flutter
await Future.delayed(const Duration(milliseconds: 100)); await Future.delayed(const Duration(milliseconds: 100));
if (Platform.isAndroid || Platform.isIOS) {
await SystemChrome.setPreferredOrientations(
[DeviceOrientation.portraitUp, DeviceOrientation.portraitDown],
);
}
// //
KRLogUtil.kr_init(); KRLogUtil.kr_init();

View File

@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts # In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix. # of the product and file versions while build-number is used as the build suffix.
version: 0.0.1 version: 0.0.3
environment: environment:
sdk: '>=3.5.0 <4.0.0' sdk: '>=3.5.0 <4.0.0'