43 lines
1.3 KiB
Dart
43 lines
1.3 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/src/widgets/framework.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:starwork_flutter/views/device/searchDevice/search_device_controller.dart';
|
|
import 'package:starwork_flutter/views/device/searchDevice/widget/search_device_rotating_icon_widget.dart';
|
|
|
|
class SearchDeviceView extends GetView<SearchDeviceController> {
|
|
const SearchDeviceView({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: Row(
|
|
children: [
|
|
Obx(() => Text(
|
|
controller.isSearching ? '搜索设备中'.tr : '搜索设备'.tr,
|
|
)),
|
|
SizedBox(
|
|
width: 8.w,
|
|
),
|
|
Obx(
|
|
() => SearchDeviceRotatingIconWidget(
|
|
isRotating: controller.isSearching,
|
|
radius: 10.w,
|
|
rotationDuration: 1500,
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
body: Container(
|
|
// TODO: 添加设备搜索结果列表
|
|
child: Center(
|
|
child: Text('设备搜索页面'),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|