|
...
|
...
|
@@ -59,6 +59,64 @@ typedef ClickCallback = void Function(String value); |
|
|
|
// };
|
|
|
|
|
|
|
|
class DialogUtil {
|
|
|
|
static showAuthorityDestination(
|
|
|
|
BuildContext context, String name, String title, String subTitle) {
|
|
|
|
Future.delayed(const Duration(seconds: 5), () {
|
|
|
|
Navigator.of(context).pop(true);
|
|
|
|
});
|
|
|
|
return showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
|
|
anchorPoint:Offset(0,0),
|
|
|
|
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return StatefulBuilder(builder: (context, state) {
|
|
|
|
// locationState = state;
|
|
|
|
return Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
|
|
|
VEmptyView(40),
|
|
|
|
Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20), vertical: w(12)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
r(5),
|
|
|
|
)),
|
|
|
|
child: Row(children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'$name',
|
|
|
|
),
|
|
|
|
width: w(30)),
|
|
|
|
HEmptyView(68),
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text('$title',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_E6000000)),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text('$subTitle',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_26000000))
|
|
|
|
])),
|
|
|
|
]))
|
|
|
|
]));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
;
|
|
|
|
}
|
|
|
|
|
|
|
|
//模块快过期提醒
|
|
|
|
static showSellerVersionEdateDialog(BuildContext context,
|
|
|
|
List<SellerVersionSunModel> showData, CustomCallBack callback,
|
|
...
|
...
|
@@ -5621,7 +5679,8 @@ class DialogUtil { |
|
|
|
}
|
|
|
|
|
|
|
|
//显示消息弹框
|
|
|
|
static showMessageDialog(BuildContext context,CollectStoreProvider collectStoreProvider) async {
|
|
|
|
static showMessageDialog(
|
|
|
|
BuildContext context, CollectStoreProvider collectStoreProvider) async {
|
|
|
|
MessageDialogModel messageModel =
|
|
|
|
Provider.of<MessageDialogModel>(context, listen: false);
|
|
|
|
if (messageModel.messages.isEmpty) return null;
|
|
...
|
...
|
@@ -5743,8 +5802,8 @@ class DialogUtil { |
|
|
|
)
|
|
|
|
: ListView.builder(
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
return MessageDialogItemF(
|
|
|
|
model.messages[index],collectStoreProvider);
|
|
|
|
return MessageDialogItemF(model.messages[index],
|
|
|
|
collectStoreProvider);
|
|
|
|
},
|
|
|
|
itemCount: model.messages.length,
|
|
|
|
shrinkWrap: true)
|
...
|
...
|
|