|
|
@@ -1,7 +1,10 @@
|
|
|
+import 'dart:ui';
|
|
|
+
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:location/data/bean/user_info.dart';
|
|
|
+import 'package:location/data/consts/constants.dart';
|
|
|
import 'package:location/resource/assets.gen.dart';
|
|
|
import 'package:location/resource/colors.gen.dart';
|
|
|
import 'package:location/resource/string.gen.dart';
|
|
|
@@ -124,12 +127,25 @@ Widget mainSelectedFriendItem(UserInfo userInfo) {
|
|
|
Expanded(
|
|
|
child: Container(
|
|
|
margin: EdgeInsets.only(right: 17.w),
|
|
|
- child: MarqueeText.marquee(
|
|
|
- text: addressCheck(
|
|
|
- userInfo.lastLocation.value?.address),
|
|
|
- textStyle: TextStyle(
|
|
|
- fontSize: 13.sp, color: ColorName.black50),
|
|
|
- containerWidth: 244.w),
|
|
|
+ child: ImageFiltered(
|
|
|
+ enabled: userInfo.blockedMe == true,
|
|
|
+ imageFilter: ImageFilter.blur(
|
|
|
+ sigmaX: Constants.blurredX,
|
|
|
+ sigmaY: Constants.blurredY,
|
|
|
+ ),
|
|
|
+ child: userInfo.blockedMe == true
|
|
|
+ ? Text(
|
|
|
+ addressCheck(
|
|
|
+ userInfo.lastLocation.value?.address),
|
|
|
+ style: TextStyle(
|
|
|
+ fontSize: 13.sp, color: ColorName.black50))
|
|
|
+ : MarqueeText.marquee(
|
|
|
+ text: addressCheck(
|
|
|
+ userInfo.lastLocation.value?.address),
|
|
|
+ textStyle: TextStyle(
|
|
|
+ fontSize: 13.sp, color: ColorName.black50),
|
|
|
+ containerWidth: 244.w),
|
|
|
+ ),
|
|
|
),
|
|
|
)
|
|
|
// Text('广东省广州市天河区XX街街XX街区XX村XX')
|