|
@@ -4,6 +4,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:get/get.dart';
|
|
import 'package:get/get.dart';
|
|
|
import 'package:get/get_core/src/get_main.dart';
|
|
import 'package:get/get_core/src/get_main.dart';
|
|
|
import 'package:location/utils/common_expand.dart';
|
|
import 'package:location/utils/common_expand.dart';
|
|
|
|
|
+import 'package:location/utils/common_style.dart';
|
|
|
import '../../../base/base_view.dart';
|
|
import '../../../base/base_view.dart';
|
|
|
import '../../../resource/assets.gen.dart';
|
|
import '../../../resource/assets.gen.dart';
|
|
|
import '../../../resource/colors.gen.dart';
|
|
import '../../../resource/colors.gen.dart';
|
|
@@ -46,9 +47,10 @@ class AddFriendPage extends BaseView<AddFriendDialogController> {
|
|
|
),
|
|
),
|
|
|
child: Stack(
|
|
child: Stack(
|
|
|
children: [
|
|
children: [
|
|
|
- // Positioned.fill(
|
|
|
|
|
- // child: Assets.images.bgAddFriendDialog.image(width: 1.sw),
|
|
|
|
|
- // ),
|
|
|
|
|
|
|
+ Positioned(
|
|
|
|
|
+ top: 0,
|
|
|
|
|
+ child: Assets.images.bgAddFriendDialog.image(width: 1.sw),
|
|
|
|
|
+ ),
|
|
|
_buildClose(),
|
|
_buildClose(),
|
|
|
Column(
|
|
Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
@@ -60,11 +62,10 @@ class AddFriendPage extends BaseView<AddFriendDialogController> {
|
|
|
SizedBox(height: 16.h),
|
|
SizedBox(height: 16.h),
|
|
|
_buildShareWx(),
|
|
_buildShareWx(),
|
|
|
SizedBox(height: 20.h),
|
|
SizedBox(height: 20.h),
|
|
|
- Center(child: Obx(() {
|
|
|
|
|
- return Text(controller.title.value,
|
|
|
|
|
- style:
|
|
|
|
|
- TextStyle(fontSize: 12.sp, color: '#A7A7A7'.color));
|
|
|
|
|
- })),
|
|
|
|
|
|
|
+ Center(
|
|
|
|
|
+ child: Text(StringName.friendAddRule,
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: 12.sp, color: '#A7A7A7'.color))),
|
|
|
SizedBox(height: 30.h),
|
|
SizedBox(height: 30.h),
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
@@ -131,7 +132,28 @@ class AddFriendPage extends BaseView<AddFriendDialogController> {
|
|
|
fontSize: 14.sp,
|
|
fontSize: 14.sp,
|
|
|
color: ColorName.primaryTextColor,
|
|
color: ColorName.primaryTextColor,
|
|
|
),
|
|
),
|
|
|
- )
|
|
|
|
|
|
|
+ ),
|
|
|
|
|
+ Spacer(),
|
|
|
|
|
+ Obx(() {
|
|
|
|
|
+ return Visibility(
|
|
|
|
|
+ maintainSize: true,
|
|
|
|
|
+ maintainAnimation: true,
|
|
|
|
|
+ maintainState: true,
|
|
|
|
|
+ visible: controller.phone.length == 11,
|
|
|
|
|
+ child: GestureDetector(
|
|
|
|
|
+ onTap: controller.onAddFriendClick,
|
|
|
|
|
+ child: Container(
|
|
|
|
|
+ decoration: getPrimaryBtnDecoration(30.w),
|
|
|
|
|
+ padding: EdgeInsets.symmetric(
|
|
|
|
|
+ horizontal: 15.w, vertical: 8.w),
|
|
|
|
|
+ child: Text(StringName.friendAddNow,
|
|
|
|
|
+ style: TextStyle(
|
|
|
|
|
+ fontSize: 14.sp,
|
|
|
|
|
+ color: Colors.white,
|
|
|
|
|
+ height: 1))),
|
|
|
|
|
+ ),
|
|
|
|
|
+ );
|
|
|
|
|
+ })
|
|
|
],
|
|
],
|
|
|
),
|
|
),
|
|
|
SizedBox(height: 18.h),
|
|
SizedBox(height: 18.h),
|
|
@@ -155,6 +177,7 @@ class AddFriendPage extends BaseView<AddFriendDialogController> {
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w),
|
|
|
child: Center(
|
|
child: Center(
|
|
|
child: TextField(
|
|
child: TextField(
|
|
|
|
|
+ controller: controller.etController,
|
|
|
style: TextStyle(
|
|
style: TextStyle(
|
|
|
fontSize: 14.sp, color: ColorName.primaryTextColor),
|
|
fontSize: 14.sp, color: ColorName.primaryTextColor),
|
|
|
maxLines: 1,
|
|
maxLines: 1,
|
|
@@ -182,8 +205,11 @@ class AddFriendPage extends BaseView<AddFriendDialogController> {
|
|
|
SizedBox(width: 14.w),
|
|
SizedBox(width: 14.w),
|
|
|
Assets.images.iconLoginAddressBook.image(width: 15.w, height: 15.w),
|
|
Assets.images.iconLoginAddressBook.image(width: 15.w, height: 15.w),
|
|
|
SizedBox(width: 3.w),
|
|
SizedBox(width: 3.w),
|
|
|
- Text(StringName.friendAddAddressBook,
|
|
|
|
|
- style: TextStyle(fontSize: 14.sp, color: '#202020'.color)),
|
|
|
|
|
|
|
+ GestureDetector(
|
|
|
|
|
+ onTap: controller.onSelectContactClick,
|
|
|
|
|
+ child: Text(StringName.friendAddAddressBook,
|
|
|
|
|
+ style: TextStyle(fontSize: 14.sp, color: '#202020'.color)),
|
|
|
|
|
+ ),
|
|
|
],
|
|
],
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|