import 'package:flutter_riverpod/legacy.dart'; /// 底部导航栏当前索引的 Provider final currentTabIndexProvider = StateProvider<int>((ref) => 0);