You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.9 KiB
71 lines
1.9 KiB
2 years ago
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:flutter/material.dart';
|
||
|
import 'package:huixiang/retrofit/retrofit_api.dart';
|
||
|
import 'package:huixiang/view_widget/classic_header.dart';
|
||
|
import 'package:huixiang/view_widget/my_footer.dart';
|
||
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||
|
|
||
|
class BusinessGoodsPage extends StatefulWidget {
|
||
|
|
||
|
@override
|
||
|
State<StatefulWidget> createState() {
|
||
|
return _BusinessGoodsPage();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class _BusinessGoodsPage extends State<BusinessGoodsPage>
|
||
|
with AutomaticKeepAliveClientMixin {
|
||
|
ApiService apiService;
|
||
|
final RefreshController refreshController = RefreshController();
|
||
|
final ScrollController scrollController = ScrollController();
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
super.build(context);
|
||
|
return Column(
|
||
|
children: [
|
||
|
Expanded(
|
||
|
child: Container(
|
||
|
child: SmartRefresher(
|
||
|
controller: refreshController,
|
||
|
enablePullDown: true,
|
||
|
enablePullUp: false,
|
||
|
header: MyHeader(),
|
||
|
physics: BouncingScrollPhysics(),
|
||
|
scrollController: scrollController,
|
||
|
footer: CustomFooter(
|
||
|
builder: (context, mode) {
|
||
|
return MyFooter(mode);
|
||
|
},
|
||
|
),
|
||
|
onRefresh: () {
|
||
|
setState(() {
|
||
|
});
|
||
|
},
|
||
|
child: SingleChildScrollView(
|
||
|
physics: NeverScrollableScrollPhysics(),
|
||
|
child: Column(
|
||
|
children: [
|
||
|
Text("商品管理")
|
||
|
],
|
||
|
)),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
SizedBox(
|
||
|
height: 76.h,
|
||
|
),
|
||
|
],
|
||
|
);
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
bool get wantKeepAlive => true;
|
||
|
}
|