Skip to content

Commit 4582efb

Browse files
committed
Optimize project
1 parent 08dd8e5 commit 4582efb

14 files changed

+334
-314
lines changed

lib/demos/alert/jhDialog_test_page.dart

+7-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ class JhDialogTestPage extends StatelessWidget {
7575
JhProgressHUD.showText('Please input number');
7676
return;
7777
}
78-
Navigator.pop(context);
78+
// 手动隐藏弹框
79+
JhDialog.hide(context);
7980
JhProgressHUD.showText('number: $inputValue');
8081
print('inputValue: $inputValue');
8182
},
@@ -99,7 +100,10 @@ class JhDialogTestPage extends StatelessWidget {
99100
height: 50,
100101
margin: EdgeInsets.all(8),
101102
decoration: BoxDecoration(
102-
border: Border.all(color: KColors.kLineColor, width: 1),
103+
border: Border.all(
104+
color: KColors.dynamicColor(context, KColors.kLineColor, KColors.kLineDarkColor),
105+
width: 1,
106+
),
103107
),
104108
child: JhFormInputCell(
105109
text: inputValue,
@@ -110,7 +114,7 @@ class JhDialogTestPage extends StatelessWidget {
110114
inputCallBack: (value) => inputValue = value,
111115
),
112116
),
113-
onCancel: () => Navigator.pop(context),
117+
onCancel: () => JhDialog.hide(context),
114118
onConfirm: () {
115119
if (inputValue.isEmpty) {
116120
JhProgressHUD.showText('Please input number');

0 commit comments

Comments
 (0)