更新分享设备权限
This commit is contained in:
@@ -10,8 +10,9 @@ import 'package:vbvs_app/controller/theme_controller/ThemeController.dart';
|
||||
|
||||
class DeviceShareInfoWidget extends StatefulWidget {
|
||||
final data;
|
||||
final String device; // 新增:设备信息
|
||||
|
||||
const DeviceShareInfoWidget({super.key, required this.data});
|
||||
const DeviceShareInfoWidget({super.key, required this.data, required this.device}); // 修改构造函数
|
||||
|
||||
@override
|
||||
State<DeviceShareInfoWidget> createState() => _DeviceShareInfoWidgetState();
|
||||
@@ -45,7 +46,13 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
|
||||
highlightColor: themeController.currentColor.sc4,
|
||||
borderRadius: 20.rpx,
|
||||
padding: EdgeInsetsDirectional.fromSTEB(0.rpx, 33.rpx, 0.rpx, 33.rpx),
|
||||
onTap: () {},
|
||||
onTap: () {
|
||||
print("aa");
|
||||
Get.toNamed("/thShareDeviceDetailWidget", arguments: {
|
||||
'data': widget.data,
|
||||
'device': widget.device // 修改:使用传入的device参数
|
||||
});
|
||||
},
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
@@ -202,4 +209,4 @@ class _DeviceShareInfoWidgetState extends State<DeviceShareInfoWidget> {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user