33 lines
951 B
Dart
33 lines
951 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:skywood/global/const/common_color.dart';
|
|
|
|
import '../../../utils/tools/help_img.dart';
|
|
import '../../../utils/tools/sky_time_tool.dart';
|
|
import '../../../utils/tools/widgets/sky_common_widget.dart';
|
|
|
|
class LikeNumWidget extends StatelessWidget {
|
|
|
|
const LikeNumWidget({super.key, required this.watchTotal,
|
|
this.tColor,
|
|
});
|
|
|
|
final int watchTotal;
|
|
final Color? tColor;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
// Icon(Icons.heart_broken, size: 15, color: Colors.redAccent,),
|
|
HelpImg.asset(ConstImg.heart, width: 18.w, height: 18.w),
|
|
const SizedBox(width: 3),
|
|
SkyText(text: SkyTimeTool.formatNum(watchTotal),
|
|
fontSize: 12,
|
|
fontWeight: FontWeight.w400,
|
|
color: tColor ?? CommonColor.black,
|
|
)
|
|
],
|
|
);
|
|
}
|
|
} |