feat: export/import JSON des sessions, stats et armurerie via partage systeme

This commit is contained in:
qlionbleusam
2026-08-13 12:22:42 +02:00
parent 3812cd740b
commit 543f54dc4f
14 changed files with 464 additions and 4 deletions
+6 -2
View File
@@ -37,23 +37,27 @@ class _MainNavigationHolderState extends State<MainNavigationHolder> {
// rafraîchissent pas seuls).
int _statsTick = 0;
int _historyTick = 0;
int _homeTick = 0;
int _garageTick = 0;
void selectTab(int index) {
if (!mounted) return;
setState(() {
_selectedIndex = index;
if (index == mainTabHome) _homeTick++;
if (index == mainTabHistory) _historyTick++;
if (index == mainTabStats) _statsTick++;
if (index == mainTabGarage) _garageTick++;
});
}
@override
Widget build(BuildContext context) {
final screens = [
const HomeScreen(),
HomeScreen(refreshTick: _homeTick),
HistoryScreen(refreshTick: _historyTick),
StatisticsScreen(refreshTick: _statsTick),
const WeaponListScreen(),
WeaponListScreen(refreshTick: _garageTick),
];
return Scaffold(
body: IndexedStack(