triangleTop method

Widget triangleTop()

正序排序

Implementation

Widget triangleTop() {
  Color? color = const Color(0xFF666666);
  if (highlight && order == FcSortOrder.asc) {
    color = Colors.white;
  } else if (highlight) {
    color = Colors.white.withOpacity(0.55);
  }

  return ImageIcon(
    const AssetImage('images/triangle_top.png', package: "fc_components"),
    size: Adapt.px(15),
    color: color
  );
}