orderIcon method
Implementation
Widget orderIcon(BuildContext context) {
Widget icon = Container();
icon = Stack(
children: [
Positioned(
child: Container(
child: Icon(
Icons.arrow_drop_up,
color: (orderState.ordered && orderState.orderType == BsOrderColumn.asc ? Colors.black : Colors.grey).withOpacity(orderable ? 0.8 : 0),
size: Theme.of(context).textTheme.bodySmall!.fontSize! + 5.0,
))),
Positioned(
child: Container(
margin: EdgeInsets.only(top: 8.0),
child: Icon(
Icons.arrow_drop_down,
color: (orderState.ordered && orderState.orderType == BsOrderColumn.desc ? Colors.black : Colors.grey)
.withOpacity(orderable ? 0.8 : 0),
size: Theme.of(context).textTheme.bodySmall!.fontSize! + 5.0,
))),
],
);
return icon;
}