|
|
@ -18,7 +18,7 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
@override |
|
|
@override |
|
|
Widget build(BuildContext context) { |
|
|
Widget build(BuildContext context) { |
|
|
return Scaffold( |
|
|
return Scaffold( |
|
|
backgroundColor: const Color(0XFF390C82), |
|
|
|
|
|
|
|
|
backgroundColor: context.battleLeagueBackgroundColor, |
|
|
appBar: MyAppBar( |
|
|
appBar: MyAppBar( |
|
|
type: AppBarType.battleLeague, |
|
|
type: AppBarType.battleLeague, |
|
|
backgroundColor: context.noColor, |
|
|
backgroundColor: context.noColor, |
|
|
@ -30,44 +30,56 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
child: Column( |
|
|
child: Column( |
|
|
children: [ |
|
|
children: [ |
|
|
MySpaces.s30.gapHeight, |
|
|
MySpaces.s30.gapHeight, |
|
|
Padding( |
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: BattleLeagueTabBar( |
|
|
|
|
|
controller: controller.tabController, |
|
|
|
|
|
tabs: [ |
|
|
|
|
|
context.translate.time_ranking, |
|
|
|
|
|
context.translate.regional_ranking, |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
_tabBars(context), |
|
|
MySpaces.s12.gapHeight, |
|
|
MySpaces.s12.gapHeight, |
|
|
Expanded( |
|
|
|
|
|
child: TabBarView( |
|
|
|
|
|
controller: controller.tabController, |
|
|
|
|
|
children: const [ |
|
|
|
|
|
Padding( |
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: TimeRanking(), |
|
|
|
|
|
), |
|
|
|
|
|
Padding( |
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: RegionalRanking(), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
_tabViews(), |
|
|
56.0.gapHeight, |
|
|
56.0.gapHeight, |
|
|
Padding( |
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: BattleLeagueStartButton( |
|
|
|
|
|
title: context.translate.play_now, |
|
|
|
|
|
onTap: () {}, |
|
|
|
|
|
), |
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
_startButton(context), |
|
|
MySpaces.s16.gapHeight, |
|
|
MySpaces.s16.gapHeight, |
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Padding _tabBars(BuildContext context) { |
|
|
|
|
|
return Padding( |
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: BattleLeagueTabBar( |
|
|
|
|
|
controller: controller.tabController, |
|
|
|
|
|
tabs: [ |
|
|
|
|
|
context.translate.time_ranking, |
|
|
|
|
|
context.translate.regional_ranking, |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Expanded _tabViews() { |
|
|
|
|
|
return Expanded( |
|
|
|
|
|
child: TabBarView( |
|
|
|
|
|
controller: controller.tabController, |
|
|
|
|
|
children: const [ |
|
|
|
|
|
Padding( |
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: TimeRanking(), |
|
|
|
|
|
), |
|
|
|
|
|
Padding( |
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: RegionalRanking(), |
|
|
|
|
|
), |
|
|
|
|
|
], |
|
|
|
|
|
), |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Padding _startButton(BuildContext context) { |
|
|
|
|
|
return Padding( |
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
child: BattleLeagueStartButton( |
|
|
|
|
|
title: context.translate.play_now, |
|
|
|
|
|
onTap: () {}, |
|
|
|
|
|
), |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
} |
|
|
} |