* Updated createGameView ListBuilder * Added ReorderableListView * Increment build no * Fixed bug with wrong medal icon * change not equal to greater than * Updated bool var * Fixed deletion error * Small translation improvements * Implemented first version of point overview * Visual improvements on table * Added details and sum row * Updated strings * Implemented new strings * Refactoring * Updated graph displayment * Moved new views to statistics section * Added seperator in main menu * Renaming * Updated sign * Updated colors & class name * Removed empty line * Updated round index * Updated types * Added new kamikaze button and bundles navigation functionality * Updated lock icon * Updated button position and design * Removed title row and changed segmendetControl Padding * Refactored logic and added comments * Updated comment * Chaned icon * Added comment * Removed print * Updated colors * Changed var name * Removed unused strings * Added gameMode * Changed creation variable * Updated mode selection * Updated strings * Changed mode order * Implemented default mode selection * Updated initState * Removed print * Removed print * Removed comments * Updated config service * Changed create game view * Changed icon * Updated strings * Updated config * Updated mode selection logic * Deleted getter * Removed not used code * Implemented reset logic for default game mode * Updated to 0.5.0 * Hotfix: Pixel Overflow * Changed the overall return type for gamemodes * Updated documentation * Fixed merge issues * Added Custom button * Updated strings * Updated buttons, implemented animatedOpacity * Keyboard still doesnt works * Fixed keyboard behaviour * Changed keyboard height * Added method getGameSessionById() * Updated gameSession class * id gets added to gameSession class at creation * Cleaned up file * Added docs and dependency * Removed toString * Implemented null safety * Added named parameter * Replaced button with custom button * Updated key * Updated addGameSessionMethod * Update README.md * Added Strings for popup * Implemented popup & confetti * Extracted code to method _playFinishAnimation() * Replaced tenary operator with Visibility Widget * Replaced tenary operator with Visibility Widget * Used variable again * Added delays in constants.dart * Removed confetti button * Updated strings * Removed print * Added dispose for confettiController * Implemented missing constant in code * Updated gameSession logic so more than one player can be winner * Updated strings * Updated winner popup * game names now can have up to 20 chars * Updated strings * Added sized box for visual enhancement * Centered the add player button and made it wider * New created player textfields get automatically focused * Added focus nodes for autofocus and navigation between textfields * Updated version number * Updated game title textfield with focus node and textaction * Added focusnodes to dispose * Update README.md * Fixed bug with no popup shown * Fixed bug with out of range error * Updated listener notification
50 lines
1.5 KiB
Dart
50 lines
1.5 KiB
Dart
import 'package:cabo_counter/core/custom_theme.dart';
|
|
import 'package:cabo_counter/l10n/generated/app_localizations.dart';
|
|
import 'package:cabo_counter/presentation/views/about_view.dart';
|
|
import 'package:cabo_counter/presentation/views/main_menu_view.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class TabView extends StatefulWidget {
|
|
const TabView({super.key});
|
|
|
|
@override
|
|
// ignore: library_private_types_in_public_api
|
|
_TabViewState createState() => _TabViewState();
|
|
}
|
|
|
|
class _TabViewState extends State<TabView> {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return CupertinoTabScaffold(
|
|
resizeToAvoidBottomInset: false,
|
|
tabBar: CupertinoTabBar(
|
|
backgroundColor: CustomTheme.mainElementBackgroundColor,
|
|
iconSize: 27,
|
|
height: 55,
|
|
items: <BottomNavigationBarItem>[
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(
|
|
CupertinoIcons.house_fill,
|
|
),
|
|
label: AppLocalizations.of(context).home,
|
|
),
|
|
BottomNavigationBarItem(
|
|
icon: const Icon(
|
|
CupertinoIcons.info,
|
|
),
|
|
label: AppLocalizations.of(context).about,
|
|
),
|
|
]),
|
|
tabBuilder: (BuildContext context, int index) {
|
|
return CupertinoTabView(builder: (BuildContext context) {
|
|
if (index == 0) {
|
|
return const MainMenuView();
|
|
} else {
|
|
return const AboutView();
|
|
}
|
|
});
|
|
},
|
|
);
|
|
}
|
|
}
|