Commit 0f6b9210384c8de5078b86822efca2956ed87ded

Authored by wdn127929
1 parent 69938cb6

预订安排状态栏颜色统一修改

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "210"
def flutterVersionCode = "211"
if (flutterVersionCode == null) {
flutterVersionCode = '210'
flutterVersionCode = '211'
}
def flutterVersionName = "2.1.0"
def flutterVersionName = "2.1.1"
if (flutterVersionName == null) {
flutterVersionName = '2.1.0'
flutterVersionName = '2.1.1'
}
apply plugin: 'com.android.application'
... ...
... ... @@ -186,6 +186,7 @@ class InvicationPageState extends State<InvicationPage> {
_goBaseInfoPage() async {
bool needRefresh = await NavigatorUtil.goBaseInfoPage(context);
Utils.changeStatusColor(color: Colors.transparent);
if (needRefresh != null && needRefresh) {
//刷新页面数据
_getCustomerActivityBaseinfo();
... ... @@ -221,11 +222,22 @@ class InvicationPageState extends State<InvicationPage> {
);
return child;
});
Utils.setBarStatus(true, color: Colors.white);
// Utils.setBarStatus(true, color: Colors.white);
}
///浏览照片
///
void onTapDown(BuildContext context, TapDownDetails details) {
final RenderBox box = context.findRenderObject();
final Offset localOffset = box.globalToLocal(details.globalPosition);
final RenderBox containerBox = key.currentContext.findRenderObject();
final Offset containerOffset = containerBox.localToGlobal(localOffset);
final onTap = containerBox.paintBounds.contains(containerOffset);
if (onTap) {
_seePhoto();
}
}
_seePhoto() {
List<String> temp = [];
if (_baseIndoProvider.photoList.length > 0) {
... ... @@ -240,6 +252,7 @@ class InvicationPageState extends State<InvicationPage> {
@override
Widget build(BuildContext context) {
// Utils.changeStatusColor(color: Colors.transparent);
// TODO: implement build
_baseIndoProvider = Provider.of<BaseIndoProvider>(context, listen: true);
couponProvider = Provider.of<CouponProvider>(context, listen: true);
... ... @@ -533,9 +546,9 @@ class InvicationPageState extends State<InvicationPage> {
),
VEmptyView(28),
GestureDetector(
onTap: () {
_seePhoto();
},
onTapDown:
(TapDownDetails details) =>
onTapDown(context, details),
child: Container(
child: Stack(
alignment: Alignment.bottomCenter,
... ...
... ... @@ -267,11 +267,16 @@ class _BaseInfoPageState extends State<BaseInfoPage> {
qiniuUrl = _uploadImageProvider.erweima.qiniuUrl;
}
if (qiniuUrl != null) {
if (qiniuUrl != null && qiniuUrl != '') {
tempList.add(qiniuUrl);
///没有上传完成的不可以点击
_showPhotoView(context, 0, tempList);
} else {
Utils.getPickPermission(context, () {
_getFromPictureOrCamera(
title, model, ImageSource.gallery);
}, PermissionGroup.photos);
}
},
child: ClipRRect(
... ...