base_project

This commit is contained in:
2026-09-19 03:57:06 +00:00
commit e497faa322
1528 changed files with 79821 additions and 0 deletions
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
class TabNavigationProvider with ChangeNotifier {
List<int> _tabHistory = [0];
int get lastTab => _tabHistory.last;
void removeLastTab() {
_tabHistory.removeLast();
notifyListeners();
}
void updateTabs(int tab) {
if (tab == 0) {
_tabHistory = [0];
} else {
_tabHistory.removeWhere((element) => element == tab);
_tabHistory.add(tab);
}
notifyListeners();
}
}