地址接口的视线
This commit is contained in:
@@ -17,20 +17,22 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
final controller = Get.put(ControlCardController());
|
||||
|
||||
final data = {
|
||||
"_id": "684bf0845a81f423c0000000",
|
||||
"uid": "68465947a0cff49592000000",
|
||||
"_id": "333330000000000000000000",
|
||||
"uid": "684b90df767e00004e0072e2",
|
||||
"bind_type": 1,
|
||||
"device_type": 3,
|
||||
"mac": "545024122617",
|
||||
"mac": "545024122666",
|
||||
"bind_mac": null,
|
||||
"bind_mac_a": "48CA43B2E8C8",
|
||||
"bind_mac_b": "48CA43B2E8B0",
|
||||
"bind_mac_a": "B43A45C3D411",
|
||||
"bind_mac_b": "B43A45C3D388",
|
||||
"position": 0,
|
||||
"share_uid": null,
|
||||
"person": null,
|
||||
"op_type": null,
|
||||
"show": true,
|
||||
"create_time": 1749807236514,
|
||||
"create_time": 1750121686274,
|
||||
"room_id": "684395bf9ef8601da20f6475",
|
||||
"roomName": "主卧",
|
||||
"shareNum": 0,
|
||||
"status": {
|
||||
"signal": -1,
|
||||
@@ -40,7 +42,7 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
"failure": 0,
|
||||
"updateTime": -1
|
||||
},
|
||||
"code": "545024122617"
|
||||
"code": "545024122666"
|
||||
};
|
||||
int selectedIndex = 1; // 当前选中的tab索引
|
||||
@override
|
||||
@@ -75,7 +77,7 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
SizedBox(width: 26.rpx),
|
||||
Container(
|
||||
decoration: BoxDecoration(
|
||||
color: Color(0xFF003058),
|
||||
color: const Color(0xFF003058),
|
||||
borderRadius: BorderRadius.circular(30.rpx),
|
||||
),
|
||||
constraints: BoxConstraints(
|
||||
@@ -90,6 +92,11 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
underline: const SizedBox(),
|
||||
dropdownColor: Colors.blueGrey,
|
||||
iconEnabledColor: Colors.white,
|
||||
icon: Icon(
|
||||
Icons.keyboard_arrow_down, // 最常用的向下箭头
|
||||
color: Colors.white,
|
||||
size: 30.rpx,
|
||||
),
|
||||
style: const TextStyle(color: Colors.white),
|
||||
isExpanded: true,
|
||||
items: const [
|
||||
@@ -113,11 +120,16 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
highlightColor: Colors.transparent,
|
||||
padding: EdgeInsets.only(right: 69.rpx),
|
||||
onTap: () {},
|
||||
child: Icon(
|
||||
Icons.bluetooth,
|
||||
color: Colors.white,
|
||||
size: 42.rpx,
|
||||
child: Image.asset(
|
||||
'assets/images/active_bluetooth.png',
|
||||
width: 42.rpx,
|
||||
height: 42.rpx,
|
||||
),
|
||||
// Icon(
|
||||
// Icons.bluetooth,
|
||||
// color: Colors.white,
|
||||
// size: 42.rpx,
|
||||
// ),
|
||||
),
|
||||
ClickableContainer(
|
||||
backgroundColor: Colors.transparent,
|
||||
@@ -131,7 +143,7 @@ class _MattressControlPageState extends State<MattressControlPage> {
|
||||
],
|
||||
centerTitle: false,
|
||||
),
|
||||
body: SafeArea(
|
||||
body: const SafeArea(
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user