page_index_provide.dart 224 B

12345678910111213
  1. import 'package:flutter/material.dart';
  2. /// 首页 tab 切换
  3. class PageIndexProvide with ChangeNotifier {
  4. int _page = 0;
  5. int get page => _page;
  6. changePage(int page) {
  7. _page = page;
  8. notifyListeners();
  9. }
  10. }