showAwardRankList static method

dynamic showAwardRankList(
  1. BuildContext context, {
  2. int type = 0,
})

大转盘榜单 type:0 dialog, 1 push

Implementation

static showAwardRankList(BuildContext context, {int type = 0}) {
  var page = JJAwardRankList(
    anchorId: '80011',
    height: 527 + DoubleValue.bottomHeight,
    clipBehavior: Clip.antiAlias,
    decoration: const BoxDecoration(color: Colors.white, borderRadius: BorderRadius.only(topLeft: Radius.circular(15), topRight: Radius.circular(15))),
    onTap: () {
      Navigator.pop(context);
    },
  );
  if (type == 1) {
    BoostRouter.innerPush(context, (context) => page);
    // Navigator.push(context, MaterialPageRoute(builder: (context) => page));
  } else {
    JJDialogController(barrierColor: Colors.transparent, isScrollControlled: true, child: page).show(context);
  }
}