|
|
@ -1,9 +1,9 @@ |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:flutter/material.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:get/get.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/resources/my_spaces.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/common_ui/theme/my_theme.dart'; |
|
|
import 'package:shia_game_flutter/common_ui/theme/my_theme.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/gap.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/gap.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
|
|
import 'package:shia_game_flutter/core/utils/my_localization.dart'; |
|
|
|
|
|
import 'package:shia_game_flutter/core/utils/screen_size.dart'; |
|
|
import 'package:shia_game_flutter/core/widgets/app_bar/enums/app_bar_type.dart'; |
|
|
import 'package:shia_game_flutter/core/widgets/app_bar/enums/app_bar_type.dart'; |
|
|
import 'package:shia_game_flutter/core/widgets/app_bar/my_app_bar.dart'; |
|
|
import 'package:shia_game_flutter/core/widgets/app_bar/my_app_bar.dart'; |
|
|
import 'package:shia_game_flutter/features/battle_league/presentation/controller/battle_league_controller.dart'; |
|
|
import 'package:shia_game_flutter/features/battle_league/presentation/controller/battle_league_controller.dart'; |
|
|
@ -29,13 +29,12 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
body: SafeArea( |
|
|
body: SafeArea( |
|
|
child: Column( |
|
|
child: Column( |
|
|
children: [ |
|
|
children: [ |
|
|
MySpaces.s30.gapHeight, |
|
|
|
|
|
|
|
|
20.h.gapHeight, |
|
|
_tabBars(context), |
|
|
_tabBars(context), |
|
|
MySpaces.s12.gapHeight, |
|
|
|
|
|
|
|
|
12.h.gapHeight, |
|
|
_tabViews(), |
|
|
_tabViews(), |
|
|
56.0.gapHeight, |
|
|
56.0.gapHeight, |
|
|
_startButton(context), |
|
|
_startButton(context), |
|
|
MySpaces.s16.gapHeight, |
|
|
|
|
|
], |
|
|
], |
|
|
), |
|
|
), |
|
|
), |
|
|
), |
|
|
@ -44,7 +43,7 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
|
|
|
|
|
|
Padding _tabBars(BuildContext context) { |
|
|
Padding _tabBars(BuildContext context) { |
|
|
return Padding( |
|
|
return Padding( |
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 30), |
|
|
child: BattleLeagueTabBar( |
|
|
child: BattleLeagueTabBar( |
|
|
controller: controller.tabController, |
|
|
controller: controller.tabController, |
|
|
tabs: [ |
|
|
tabs: [ |
|
|
@ -61,11 +60,11 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
controller: controller.tabController, |
|
|
controller: controller.tabController, |
|
|
children: const [ |
|
|
children: const [ |
|
|
Padding( |
|
|
Padding( |
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 30), |
|
|
child: TimeRanking(), |
|
|
child: TimeRanking(), |
|
|
), |
|
|
), |
|
|
Padding( |
|
|
Padding( |
|
|
padding: EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: 30), |
|
|
child: RegionalRanking(), |
|
|
child: RegionalRanking(), |
|
|
), |
|
|
), |
|
|
], |
|
|
], |
|
|
@ -75,7 +74,7 @@ class BattleLeaguePage extends GetView<BattleLeagueController> { |
|
|
|
|
|
|
|
|
Padding _startButton(BuildContext context) { |
|
|
Padding _startButton(BuildContext context) { |
|
|
return Padding( |
|
|
return Padding( |
|
|
padding: const EdgeInsets.symmetric(horizontal: MySpaces.s30), |
|
|
|
|
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 30), |
|
|
child: BattleLeagueStartButton( |
|
|
child: BattleLeagueStartButton( |
|
|
title: context.translate.play_now, |
|
|
title: context.translate.play_now, |
|
|
onTap: () {}, |
|
|
onTap: () {}, |
|
|
|