插件bug修复
This commit is contained in:
parent
35822f4287
commit
be07fc454d
|
|
@ -4,31 +4,23 @@ PODS:
|
||||||
- Flutter
|
- Flutter
|
||||||
- AgoraIrisRTC_iOS (3.6.2-fix.1)
|
- AgoraIrisRTC_iOS (3.6.2-fix.1)
|
||||||
- Flutter (1.0.0)
|
- Flutter (1.0.0)
|
||||||
- fluttertoast (0.0.2):
|
|
||||||
- Flutter
|
|
||||||
- Toast
|
|
||||||
- "permission_handler (5.1.0+2)":
|
- "permission_handler (5.1.0+2)":
|
||||||
- Flutter
|
- Flutter
|
||||||
- Toast (4.0.0)
|
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
- agora_rtc_engine (from `.symlinks/plugins/agora_rtc_engine/ios`)
|
- agora_rtc_engine (from `.symlinks/plugins/agora_rtc_engine/ios`)
|
||||||
- Flutter (from `Flutter`)
|
- Flutter (from `Flutter`)
|
||||||
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
|
|
||||||
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
|
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
|
||||||
|
|
||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
trunk:
|
trunk:
|
||||||
- AgoraIrisRTC_iOS
|
- AgoraIrisRTC_iOS
|
||||||
- Toast
|
|
||||||
|
|
||||||
EXTERNAL SOURCES:
|
EXTERNAL SOURCES:
|
||||||
agora_rtc_engine:
|
agora_rtc_engine:
|
||||||
:path: ".symlinks/plugins/agora_rtc_engine/ios"
|
:path: ".symlinks/plugins/agora_rtc_engine/ios"
|
||||||
Flutter:
|
Flutter:
|
||||||
:path: Flutter
|
:path: Flutter
|
||||||
fluttertoast:
|
|
||||||
:path: ".symlinks/plugins/fluttertoast/ios"
|
|
||||||
permission_handler:
|
permission_handler:
|
||||||
:path: ".symlinks/plugins/permission_handler/ios"
|
:path: ".symlinks/plugins/permission_handler/ios"
|
||||||
|
|
||||||
|
|
@ -36,9 +28,7 @@ SPEC CHECKSUMS:
|
||||||
agora_rtc_engine: ffc530eff766a38272568ebaead9341d73f58856
|
agora_rtc_engine: ffc530eff766a38272568ebaead9341d73f58856
|
||||||
AgoraIrisRTC_iOS: 9b11083bb79048ae4db7e2f56109cc51ac9e3834
|
AgoraIrisRTC_iOS: 9b11083bb79048ae4db7e2f56109cc51ac9e3834
|
||||||
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
|
Flutter: 50d75fe2f02b26cc09d224853bb45737f8b3214a
|
||||||
fluttertoast: 6122fa75143e992b1d3470f61000f591a798cc58
|
|
||||||
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
|
permission_handler: ccb20a9fad0ee9b1314a52b70b76b473c5f8dab0
|
||||||
Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
|
|
||||||
|
|
||||||
PODFILE CHECKSUM: bd5ecd90bb4d3dada07dd6c6725bb70ab42e9619
|
PODFILE CHECKSUM: bd5ecd90bb4d3dada07dd6c6725bb70ab42e9619
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,98 +1,98 @@
|
||||||
import 'package:flutter/material.dart';
|
// import 'package:flutter/material.dart';
|
||||||
import 'package:fluttertoast/fluttertoast.dart';
|
// import 'package:fluttertoast/fluttertoast.dart';
|
||||||
|
|
||||||
// 普通气泡弹框
|
// // 普通气泡弹框
|
||||||
// 使用:showToast("xxxxxxx");
|
// // 使用:showToast("xxxxxxx");
|
||||||
void showToast(
|
// void showToast(
|
||||||
String text, {
|
// String text, {
|
||||||
gravity: ToastGravity.CENTER,
|
// gravity: ToastGravity.CENTER,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
// toastLength: Toast.LENGTH_SHORT,
|
||||||
}) {
|
// }) {
|
||||||
Fluttertoast.showToast(
|
// Fluttertoast.showToast(
|
||||||
msg: text,
|
// msg: text,
|
||||||
toastLength: Toast.LENGTH_SHORT,
|
// toastLength: Toast.LENGTH_SHORT,
|
||||||
gravity: ToastGravity.CENTER,
|
// gravity: ToastGravity.CENTER,
|
||||||
timeInSecForIosWeb: 3,
|
// timeInSecForIosWeb: 3,
|
||||||
backgroundColor: Colors.grey[600], // 灰色背景
|
// backgroundColor: Colors.grey[600], // 灰色背景
|
||||||
fontSize: 16.0,
|
// fontSize: 16.0,
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 一个加载中的动画,不传text时,默认显示文字Loading...
|
// // 一个加载中的动画,不传text时,默认显示文字Loading...
|
||||||
// 使用:showLoading(context, 'xxxxxxx');
|
// // 使用:showLoading(context, 'xxxxxxx');
|
||||||
void showLoading(context, text) {
|
// void showLoading(context, text) {
|
||||||
text = text ?? "Loading...";
|
// text = text ?? "Loading...";
|
||||||
showDialog(
|
// showDialog(
|
||||||
barrierDismissible: false,
|
// barrierDismissible: false,
|
||||||
context: context,
|
// context: context,
|
||||||
builder: (context) {
|
// builder: (context) {
|
||||||
return Center(
|
// return Center(
|
||||||
child: Container(
|
// child: Container(
|
||||||
decoration: BoxDecoration(
|
// decoration: BoxDecoration(
|
||||||
color: Colors.white,
|
// color: Colors.white,
|
||||||
borderRadius: BorderRadius.circular(3.0),
|
// borderRadius: BorderRadius.circular(3.0),
|
||||||
boxShadow: [
|
// boxShadow: [
|
||||||
// 阴影
|
// // 阴影
|
||||||
BoxShadow(
|
// BoxShadow(
|
||||||
color: Colors.black12,
|
// color: Colors.black12,
|
||||||
//offset: Offset(2.0,2.0),
|
// //offset: Offset(2.0,2.0),
|
||||||
blurRadius: 10.0,
|
// blurRadius: 10.0,
|
||||||
)
|
// )
|
||||||
]),
|
// ]),
|
||||||
padding: EdgeInsets.all(16),
|
// padding: EdgeInsets.all(16),
|
||||||
margin: EdgeInsets.all(16),
|
// margin: EdgeInsets.all(16),
|
||||||
constraints: BoxConstraints(minHeight: 120, minWidth: 180),
|
// constraints: BoxConstraints(minHeight: 120, minWidth: 180),
|
||||||
child: Column(
|
// child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
// mainAxisSize: MainAxisSize.min,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
// mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: <Widget>[
|
// children: <Widget>[
|
||||||
SizedBox(
|
// SizedBox(
|
||||||
height: 30,
|
// height: 30,
|
||||||
width: 30,
|
// width: 30,
|
||||||
child: CircularProgressIndicator(
|
// child: CircularProgressIndicator(
|
||||||
strokeWidth: 3,
|
// strokeWidth: 3,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
Padding(
|
// Padding(
|
||||||
padding: const EdgeInsets.only(top: 20.0),
|
// padding: const EdgeInsets.only(top: 20.0),
|
||||||
child: Text(
|
// child: Text(
|
||||||
text,
|
// text,
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
// style: Theme.of(context).textTheme.bodyMedium,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 带有确定取消按钮的提示框,content是提示框的内容文字,confirmCallback是点击确定按钮的回调
|
// // 带有确定取消按钮的提示框,content是提示框的内容文字,confirmCallback是点击确定按钮的回调
|
||||||
// 使用:showConfirmDialog(context, '确认xxxxxxx吗?', () {print('xxxxxxx');});
|
// // 使用:showConfirmDialog(context, '确认xxxxxxx吗?', () {print('xxxxxxx');});
|
||||||
void showConfirmDialog(
|
// void showConfirmDialog(
|
||||||
BuildContext context, String content, Function confirmCallback) {
|
// BuildContext context, String content, Function confirmCallback) {
|
||||||
showDialog(
|
// showDialog(
|
||||||
context: context,
|
// context: context,
|
||||||
builder: (context) {
|
// builder: (context) {
|
||||||
return AlertDialog(
|
// return AlertDialog(
|
||||||
title: Text("提示"),
|
// title: Text("提示"),
|
||||||
content: Text(content),
|
// content: Text(content),
|
||||||
actions: <Widget>[
|
// actions: <Widget>[
|
||||||
FlatButton(
|
// FlatButton(
|
||||||
onPressed: () {
|
// onPressed: () {
|
||||||
confirmCallback();
|
// confirmCallback();
|
||||||
Navigator.of(context).pop();
|
// Navigator.of(context).pop();
|
||||||
},
|
// },
|
||||||
child: Text("确认"),
|
// child: Text("确认"),
|
||||||
),
|
// ),
|
||||||
FlatButton(
|
// FlatButton(
|
||||||
onPressed: () {
|
// onPressed: () {
|
||||||
Navigator.of(context).pop();
|
// Navigator.of(context).pop();
|
||||||
},
|
// },
|
||||||
child: Text("取消"),
|
// child: Text("取消"),
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
|
||||||
|
|
@ -93,13 +93,6 @@ packages:
|
||||||
description: flutter
|
description: flutter
|
||||||
source: sdk
|
source: sdk
|
||||||
version: "0.0.0"
|
version: "0.0.0"
|
||||||
fluttertoast:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: fluttertoast
|
|
||||||
url: "https://pub.flutter-io.cn"
|
|
||||||
source: hosted
|
|
||||||
version: "7.1.8"
|
|
||||||
http_parser:
|
http_parser:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,6 @@ dependencies:
|
||||||
permission_handler: ^8.3.0
|
permission_handler: ^8.3.0
|
||||||
validators: ^3.0.0
|
validators: ^3.0.0
|
||||||
dio: ^4.0.6
|
dio: ^4.0.6
|
||||||
fluttertoast: ^7.1.6
|
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue