Browse Source

社群图片优化;

我的信息样式更改
ff_new
w-R 3 years ago
parent
commit
b2ec5d500b
  1. 10
      lib/community/community_view/community_dynamic.dart
  2. 2
      lib/integral/intergra_view/integral_vip.dart
  3. 59
      lib/mine/mine_view/mine_view.dart

10
lib/community/community_view/community_dynamic.dart

@ -14,6 +14,7 @@ import 'package:huixiang/view_widget/icon_text.dart';
import 'package:huixiang/view_widget/round_button.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:image_pickers/image_pickers.dart';
import 'package:photo_view/photo_view.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:video_player/video_player.dart';
@ -171,7 +172,10 @@ class _CommunityDynamic extends State<CommunityDynamic> {
children: [
GestureDetector(
onTap: (){
// ImagePickers.previewImages(widget.comment.memberInfo.avatar);
Navigator.push(context, MaterialPageRoute( builder: (context) => PhotoViewGalleryScreen(
images:[widget?.comment?.memberInfo?.avatar ?? ""],//list
index: 0,//index
), ), );
},
child: MImage(
widget?.comment?.memberInfo?.avatar ?? "",
@ -339,6 +343,10 @@ class _CommunityDynamic extends State<CommunityDynamic> {
child: InkWell(
onTap: () {
ImagePickers.previewImages(subjectInfo.images,0);
// Navigator.push(context, MaterialPageRoute( builder: (context) => PhotoViewGalleryScreen(
// images:subjectInfo.images,//list
// index: 0,//index
// ), ), );
},
child: MImage(
subjectInfo.images[0],

2
lib/integral/intergra_view/integral_vip.dart

@ -44,7 +44,7 @@ class _IntegralVip extends State<IntegralVip> {
Expanded(
child: Container(
margin: EdgeInsets.only(left: 15.w),
height: 50.h,
height: 53.h,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start,

59
lib/mine/mine_view/mine_view.dart

@ -98,7 +98,12 @@ class _MineView extends State<MineView> {
String tableId = uri.queryParameters["tableId"];
String tenantCode = uri.queryParameters["tenantCode"];
String shopId = uri.queryParameters["shopId"];
if (tableId != null && tableId != "" && tenantCode != null && tenantCode != "" && shopId != null && shopId != "") {
if (tableId != null &&
tableId != "" &&
tenantCode != null &&
tenantCode != "" &&
shopId != null &&
shopId != "") {
Navigator.of(context).pushNamed(
'/router/store_order',
arguments: {
@ -156,7 +161,7 @@ class _MineView extends State<MineView> {
Expanded(
flex: 1,
child: Container(
height: 50.h,
height: 53.h,
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.stretch,
@ -211,7 +216,7 @@ class _MineView extends State<MineView> {
: Text(
widget.userInfo == null
? ""
: "NO.${widget.userInfo.vipNo}",
: "我的积分:${widget.userInfo.points}",
style: TextStyle(
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
@ -236,28 +241,34 @@ class _MineView extends State<MineView> {
alignment: Alignment.bottomRight,
height: 50.h,
child: GestureDetector(
onTap: () {
widget.toIntegralPage();
},
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text(
S.of(context).jifenxiangqing,
style: TextStyle(
color: Colors.black,
fontSize: 12.sp,
fontWeight: MyFontWeight.semi_bold,
),
onTap: () {
widget.toIntegralPage();
},
child: Container(
padding: EdgeInsets.only(top: 4, bottom: 4, right: 16,left: 7),
decoration: BoxDecoration(
color: Color(0xFF87E8B0),
borderRadius: BorderRadius.only(topLeft: Radius.circular(100),bottomLeft:Radius.circular(100)),
),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text(
S.of(context).jifenxiangqing,
style: TextStyle(
color: Colors.black,
fontSize: 12.sp,
fontWeight: MyFontWeight.regular,
),
),
Icon(
Icons.keyboard_arrow_right,
size: 16,
color: Colors.black,
)
],
),
Icon(
Icons.keyboard_arrow_right,
size: 16,
color: Colors.black,
)
],
),
),
)),
),
],
),

Loading…
Cancel
Save