68 lines
2.8 KiB
Dart
68 lines
2.8 KiB
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import '../../../appRouters.dart';
|
|
import '../../../app_settings/app_colors.dart';
|
|
import '../../../tools/commonItem.dart';
|
|
import '../../../tools/showTFView.dart';
|
|
import '../../../tools/submitBtn.dart';
|
|
import '../../../tools/titleAppBar.dart';
|
|
import '../../../translations/trans_lib.dart';
|
|
|
|
class GatewayDetailPage extends StatefulWidget {
|
|
const GatewayDetailPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<GatewayDetailPage> createState() => _GatewayDetailPageState();
|
|
}
|
|
|
|
class _GatewayDetailPageState extends State<GatewayDetailPage> {
|
|
final _changeGatewayNameController = TextEditingController();
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColors.mainBackgroundColor,
|
|
appBar: TitleAppBar(barTitle: TranslationLoader.lanKeys!.gateway!.tr, haveBack:true, backgroundColor: AppColors.mainColor),
|
|
body: ListView(
|
|
children: [
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.designation!.tr, rightTitle:"星锁网关", isHaveLine: true, isHaveDirection: true, action: (){
|
|
showCupertinoAlertDialog(context);
|
|
}),
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.state!.tr, rightTitle:"在线", isHaveLine: true, isHaveDirection: false),
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.wifiName!.tr, rightTitle:"XinHongJia", isHaveLine: true, isHaveDirection: false),
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.networkMAC!.tr, rightTitle:"39:23:df:34:12", isHaveLine: false, isHaveDirection: false),
|
|
SizedBox(height: 10.h,),
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.nearbyLock!.tr, rightTitle:"2", isHaveLine: true, isHaveDirection: true, action: (){
|
|
Navigator.pushNamed(context, Routers.gatewayConnectionLockPage);
|
|
}),
|
|
CommonItem(leftTitel:TranslationLoader.lanKeys!.gatewayUpgrade!.tr, rightTitle:"", isHaveLine: false, isHaveDirection: true, action: (){
|
|
|
|
}),
|
|
SizedBox(height: 80.h,),
|
|
SubmitBtn(btnName: TranslationLoader.lanKeys!.delete!.tr,
|
|
borderRadius: 20.w,
|
|
fontSize: 32.sp,
|
|
margin: EdgeInsets.only(left: 30.w, right: 30.w),
|
|
padding: EdgeInsets.only(top: 15.w, bottom: 15.w),
|
|
onClick: () {
|
|
|
|
}
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
|
|
// 修改名字
|
|
void showCupertinoAlertDialog(BuildContext context) {
|
|
showDialog(
|
|
context: context,
|
|
builder: (BuildContext context) {
|
|
return ShowTFView(title:"${TranslationLoader.lanKeys!.amend!.tr} ${TranslationLoader.lanKeys!.name!.tr}", tipTitle:"请输入", controller: _changeGatewayNameController);
|
|
});
|
|
}
|
|
}
|