Browse Source

修改构建金币标签大小

ios
Jolie 3 months ago
parent
commit
6faac0321a
4 changed files with 24 additions and 24 deletions
  1. 12
      lib/widget/message/image_item.dart
  2. 12
      lib/widget/message/text_item.dart
  3. 12
      lib/widget/message/video_item.dart
  4. 12
      lib/widget/message/voice_item.dart

12
lib/widget/message/image_item.dart

@ -676,24 +676,24 @@ class _ImageItemState extends State<ImageItem> {
//
Widget _buildCoinLabel(String revenueInfo) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 6.h),
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h),
decoration: BoxDecoration(
color: Color.fromRGBO(0, 0, 0, 0.05),
borderRadius: BorderRadius.circular(20.w),
borderRadius: BorderRadius.circular(12.w),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
Assets.imagesImCoinIcon,
width: 16.w,
height: 16.w,
width: 10.w,
height: 10.w,
),
SizedBox(width: 4.w),
SizedBox(width: 2.w),
Text(
revenueInfo,
style: TextStyle(
fontSize: 12.sp,
fontSize: 9.sp,
color: Color.fromRGBO(255, 132, 0, 1),
),
),

12
lib/widget/message/text_item.dart

@ -160,24 +160,24 @@ class TextItem extends StatelessWidget {
//
Widget _buildCoinLabel(String revenueInfo) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 6.h),
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h),
decoration: BoxDecoration(
color: Color.fromRGBO(0, 0, 0, 0.05),
borderRadius: BorderRadius.circular(20.w),
borderRadius: BorderRadius.circular(12.w),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
Assets.imagesImCoinIcon,
width: 16.w,
height: 16.w,
width: 10.w,
height: 10.w,
),
SizedBox(width: 4.w),
SizedBox(width: 2.w),
Text(
revenueInfo,
style: TextStyle(
fontSize: 12.sp,
fontSize: 9.sp,
color: Color.fromRGBO(255, 132, 0, 1),
),
),

12
lib/widget/message/video_item.dart

@ -484,24 +484,24 @@ class _VideoItemState extends State<VideoItem> {
//
Widget _buildCoinLabel(String revenueInfo) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 6.h),
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h),
decoration: BoxDecoration(
color: Color.fromRGBO(0, 0, 0, 0.05),
borderRadius: BorderRadius.circular(20.w),
borderRadius: BorderRadius.circular(12.w),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
Assets.imagesImCoinIcon,
width: 16.w,
height: 16.w,
width: 10.w,
height: 10.w,
),
SizedBox(width: 4.w),
SizedBox(width: 2.w),
Text(
revenueInfo,
style: TextStyle(
fontSize: 12.sp,
fontSize: 9.sp,
color: Color.fromRGBO(255, 132, 0, 1),
),
),

12
lib/widget/message/voice_item.dart

@ -382,24 +382,24 @@ class _VoiceItemState extends State<VoiceItem> with TickerProviderStateMixin {
//
Widget _buildCoinLabel(String revenueInfo) {
return Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 6.h),
padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 3.h),
decoration: BoxDecoration(
color: Color.fromRGBO(0, 0, 0, 0.05),
borderRadius: BorderRadius.circular(20.w),
borderRadius: BorderRadius.circular(12.w),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Image.asset(
Assets.imagesImCoinIcon,
width: 16.w,
height: 16.w,
width: 10.w,
height: 10.w,
),
SizedBox(width: 4.w),
SizedBox(width: 2.w),
Text(
revenueInfo,
style: TextStyle(
fontSize: 12.sp,
fontSize: 9.sp,
color: Color.fromRGBO(255, 132, 0, 1),
),
),

Loading…
Cancel
Save