Files
flisp_app/lib/provider/app_provider.dart
2025-11-23 20:17:10 +08:00

20 lines
536 B
Dart

import 'package:flutter/material.dart';
import 'package:package_info_plus/package_info_plus.dart';
class AppProvider with ChangeNotifier {
static const List<String> appBarTitles = ['闪灵', '待办', '日程', '统计'];
int currentTab = 0;
String currentAppBarTitle = '闪灵';
String appVersion = '1.0.0';
String buildNumber = '1';
String get fullVersion => '$appVersion+$buildNumber';
void changeTab(int index) {
currentTab = index;
currentAppBarTitle = appBarTitles[index];
notifyListeners();
}
}