develop_sky #1
@ -180,8 +180,7 @@ class _PasswordKeyDetailPageState extends State<PasswordKeyDetailPage>
|
||||
left: 30.w, right: 30.w, top: 30.w, bottom: 30.w),
|
||||
padding: EdgeInsets.only(top: 25.w, bottom: 25.w),
|
||||
onClick: () async {
|
||||
final bool isNetWork =
|
||||
await LockMainLogic.to()?.judgeTheNetwork() ?? false;
|
||||
final bool isNetWork = await logic.isConnected();
|
||||
if (!isNetWork) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -53,6 +53,7 @@ class KeySearchWidget extends StatelessWidget {
|
||||
controller: editingController,
|
||||
autofocus: false,
|
||||
textAlign: TextAlign.start,
|
||||
textInputAction: TextInputAction.search,
|
||||
onChanged: (String value) {
|
||||
AppLog.log('onChanged:$value');
|
||||
},
|
||||
@ -60,6 +61,7 @@ class KeySearchWidget extends StatelessWidget {
|
||||
AppLog.log('onEditingComplete:');
|
||||
},
|
||||
onSubmitted: (String value) {
|
||||
FocusScope.of(context).unfocus(); // 收起键盘
|
||||
onSubmittedAction!();
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
|
||||
@ -64,6 +64,7 @@ class _TitleAppBarState extends State<TitleAppBar> {
|
||||
EasyLoading.dismiss();
|
||||
}
|
||||
Navigator.pop(context);
|
||||
FocusScope.of(context).unfocus(); // 收起键盘
|
||||
}
|
||||
})
|
||||
: Container()),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user