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

2
lib/integral/intergra_view/integral_vip.dart

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