mask
This commit is contained in:
parent
0797334e35
commit
6bb2434b9d
@ -19,7 +19,7 @@ void showLoading(String text, BuildContext context) {
|
|||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
}
|
}
|
||||||
dismissLoading();
|
dismissLoading();
|
||||||
EasyLoading.show(status: text);
|
EasyLoading.show(status: text, maskType: EasyLoadingMaskType.black);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dismissLoading() {
|
void dismissLoading() {
|
||||||
@ -28,7 +28,7 @@ void dismissLoading() {
|
|||||||
|
|
||||||
void showSuccess(String text) {
|
void showSuccess(String text) {
|
||||||
dismissLoading();
|
dismissLoading();
|
||||||
EasyLoading.showSuccess(text);
|
EasyLoading.showSuccess(text, maskType: EasyLoadingMaskType.black);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool _hasDialog = false;
|
bool _hasDialog = false;
|
||||||
@ -98,7 +98,8 @@ void msgbox(String type, String title, String text, BuildContext context,
|
|||||||
dismissLoading();
|
dismissLoading();
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
EasyLoading.showWidget(Column(
|
EasyLoading.showWidget(
|
||||||
|
Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(title, style: TextStyle(fontSize: 21)),
|
Text(title, style: TextStyle(fontSize: 21)),
|
||||||
@ -109,7 +110,8 @@ void msgbox(String type, String title, String text, BuildContext context,
|
|||||||
children: buttons,
|
children: buttons,
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
));
|
),
|
||||||
|
maskType: EasyLoadingMaskType.black);
|
||||||
}
|
}
|
||||||
|
|
||||||
class PasswordWidget extends StatefulWidget {
|
class PasswordWidget extends StatefulWidget {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user