/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-03-29 09:30:11
 * @LastEditTime : 2023-03-29 09:30:50
 * @Description  : Do not edit
 */

part of 'index.dart';

class _PageView extends StatefulWidget {
  _PageView({Key? key}) : super(key: key);
  @override
  _PageViewState createState() => _PageViewState();
}

class _PageViewState extends State<_PageView> {
  _Store get store => Provider.of(context, listen: false);
  @override
//void initState() {
//super.initState();
// Future.microtask(() {
//store.xxx();
// });
//}
  @override
  Widget build(BuildContext context) {
    final colorScheme = WTheme.of(context).colorScheme;
    return Scaffold(
      appBar: WAppBar(
        brightness: Brightness.light,
        title: WisText('${store.args['appBarTitle'] ?? '收费管理'}',
            size: 19.pt, weight: FontWeight.w600, color: colorScheme.mainTitle),
        iconTheme: IconThemeData(
          color: colorScheme.mainTitle,
          size: 19.pt,
        ),
        backgroundColor: Colors.white,
      ),
      body: WisScrollView(
        key: store.scorllViewKey,
        onRefresh: () => store.getList(isLoad: false),
        onInit: () => store.getList(isLoad: false),
        onLoad: () => store.getList(),
        slivers: <Widget>[
          _ListComponent(),
        ],
      ),
    );
  }
}
