更新
This commit is contained in:
@@ -158,13 +158,12 @@ class _WifiPageState extends State<WifiPage> {
|
||||
children: [
|
||||
Text(
|
||||
'wifi页.标题'.tr,
|
||||
style:
|
||||
FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0,
|
||||
fontSize: 30.rpx,
|
||||
),
|
||||
),
|
||||
SizedBox(
|
||||
width: 14.rpx,
|
||||
@@ -235,13 +234,11 @@ class _WifiPageState extends State<WifiPage> {
|
||||
16.rpx, 0, 16.rpx, 0),
|
||||
child: Text(
|
||||
'下一步'.tr,
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.titleSmall
|
||||
.override(
|
||||
fontFamily: 'Inter Tight',
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter Tight',
|
||||
color: themeController.currentColor.sc3,
|
||||
letterSpacing: 0.0,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -375,15 +372,13 @@ class _WifiPageState extends State<WifiPage> {
|
||||
children: [
|
||||
Text(
|
||||
'可用WLAN'.tr,
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController
|
||||
.currentColor.sc3,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color:
|
||||
themeController.currentColor.sc3,
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -449,21 +444,19 @@ class _WifiPageState extends State<WifiPage> {
|
||||
InputDecoration(
|
||||
isDense:
|
||||
true,
|
||||
labelStyle: FlutterFlowTheme.of(
|
||||
context)
|
||||
.labelMedium
|
||||
.override(
|
||||
fontFamily:
|
||||
'Inter',
|
||||
fontSize:
|
||||
26.rpx,
|
||||
letterSpacing:
|
||||
0.0,
|
||||
),
|
||||
labelStyle:
|
||||
TextStyle(
|
||||
fontFamily:
|
||||
'Inter',
|
||||
fontSize:
|
||||
26.rpx,
|
||||
letterSpacing:
|
||||
0.0,
|
||||
),
|
||||
hintText:
|
||||
'蓝牙绑定.输入wifi密码'
|
||||
.tr,
|
||||
hintStyle: FlutterFlowTheme.of(context).labelMedium.override(
|
||||
hintStyle: TextStyle(
|
||||
fontFamily:
|
||||
'Inter',
|
||||
fontSize: 26
|
||||
@@ -503,8 +496,6 @@ class _WifiPageState extends State<WifiPage> {
|
||||
OutlineInputBorder(
|
||||
borderSide:
|
||||
BorderSide(
|
||||
color: FlutterFlowTheme.of(context)
|
||||
.error,
|
||||
width: 1
|
||||
.rpx,
|
||||
),
|
||||
@@ -516,8 +507,6 @@ class _WifiPageState extends State<WifiPage> {
|
||||
OutlineInputBorder(
|
||||
borderSide:
|
||||
BorderSide(
|
||||
color: FlutterFlowTheme.of(context)
|
||||
.error,
|
||||
width: 1
|
||||
.rpx,
|
||||
),
|
||||
@@ -527,9 +516,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
),
|
||||
filled:
|
||||
false,
|
||||
fillColor: FlutterFlowTheme.of(
|
||||
context)
|
||||
.secondaryBackground,
|
||||
fillColor: Colors.white,
|
||||
suffixIcon:
|
||||
InkWell(
|
||||
onTap:
|
||||
@@ -553,7 +540,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
),
|
||||
),
|
||||
),
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
style: TextStyle(
|
||||
fontFamily:
|
||||
'Inter',
|
||||
fontSize: 26
|
||||
@@ -684,18 +671,13 @@ class _WifiPageState extends State<WifiPage> {
|
||||
children: [
|
||||
Text(
|
||||
wifiItem['ssid'] ?? '',
|
||||
style: FlutterFlowTheme
|
||||
.of(context)
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color:
|
||||
themeController
|
||||
.currentColor
|
||||
.sc3,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController
|
||||
.currentColor.sc3,
|
||||
),
|
||||
),
|
||||
if (blueteethBindController
|
||||
.selectWifi.value ==
|
||||
@@ -815,15 +797,13 @@ class _WifiPageState extends State<WifiPage> {
|
||||
),
|
||||
Text(
|
||||
'刷新'.tr,
|
||||
style: FlutterFlowTheme.of(context)
|
||||
.bodyMedium
|
||||
.override(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController
|
||||
.currentColor.sc3,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Inter',
|
||||
fontSize: 30.rpx,
|
||||
letterSpacing: 0.0,
|
||||
color: themeController
|
||||
.currentColor.sc3,
|
||||
),
|
||||
),
|
||||
].divide(SizedBox(width: 26.rpx)),
|
||||
),
|
||||
@@ -1102,7 +1082,8 @@ class _WifiPageState extends State<WifiPage> {
|
||||
// text: "4g设备配置wifi提示".tr,
|
||||
// textColor: themeController.currentColor.sc9,
|
||||
// );
|
||||
updateDeviceBindStatus(blueteethBindController.currentDeviceMac!.value);
|
||||
updateDeviceBindStatus(
|
||||
blueteethBindController.currentDeviceMac!.value);
|
||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||
TopSlideNotification.show(
|
||||
context,
|
||||
@@ -1162,7 +1143,7 @@ class _WifiPageState extends State<WifiPage> {
|
||||
}
|
||||
}
|
||||
|
||||
void updateDeviceBindStatus(String mac) {
|
||||
void updateDeviceBindStatus(String mac) {
|
||||
String serviceAddress = ServiceConstant.service_address;
|
||||
String serviceName = ServiceConstant.server_service;
|
||||
String serviceApi = ServiceConstant.user_setting;
|
||||
@@ -1179,8 +1160,8 @@ class _WifiPageState extends State<WifiPage> {
|
||||
"type": type,
|
||||
"mac": mac,
|
||||
"wifi": true,
|
||||
"celibration":res.data['celibration'],
|
||||
"person_info":res.data['person_info'],
|
||||
"celibration": res.data['celibration'],
|
||||
"person_info": res.data['person_info'],
|
||||
"time": DateTime.now().millisecondsSinceEpoch,
|
||||
};
|
||||
requestWithLog(
|
||||
|
||||
Reference in New Issue
Block a user