|
|
@ -5,18 +5,13 @@ import 'package:aku_community_manager/ui/widgets/common/bee_list_view.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
|
|
// Package imports:
|
|
|
|
// Package imports:
|
|
|
|
import 'package:aku_ui/common_widgets/aku_material_button.dart';
|
|
|
|
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:flutter_easyrefresh/easy_refresh.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Project imports:
|
|
|
|
// Project imports:
|
|
|
|
import 'package:aku_community_manager/const/resource.dart';
|
|
|
|
import 'package:aku_community_manager/const/resource.dart';
|
|
|
|
import 'package:aku_community_manager/mock_models/users/user_info_model.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/provider/user_provider.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/style/app_style.dart';
|
|
|
|
import 'package:aku_community_manager/style/app_style.dart';
|
|
|
|
import 'package:aku_community_manager/tools/widget_tool.dart';
|
|
|
|
import 'package:aku_community_manager/tools/widget_tool.dart';
|
|
|
|
import 'package:aku_community_manager/ui/sub_pages/borrow_manager/add_borrow_object_page.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/ui/sub_pages/borrow_manager/borrow_items_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/sub_pages/borrow_manager/borrow_items_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
|
|
|
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -31,25 +26,24 @@ class _AllBorrowGoodsState extends State<AllBorrowGoods> {
|
|
|
|
EasyRefreshController _refreshController = EasyRefreshController();
|
|
|
|
EasyRefreshController _refreshController = EasyRefreshController();
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
final userProvider = Provider.of<UserProvider>(context);
|
|
|
|
|
|
|
|
return AkuScaffold(
|
|
|
|
return AkuScaffold(
|
|
|
|
title: '全部物品',
|
|
|
|
title: '全部物品',
|
|
|
|
actions: [
|
|
|
|
actions: [
|
|
|
|
userProvider.userInfoModel.role == USER_ROLE.MANAGER
|
|
|
|
// userProvider.userInfoModel.role == USER_ROLE.MANAGER
|
|
|
|
? AkuMaterialButton(
|
|
|
|
// ? AkuMaterialButton(
|
|
|
|
minWidth: 120.w,
|
|
|
|
// minWidth: 120.w,
|
|
|
|
onPressed: () {
|
|
|
|
// onPressed: () {
|
|
|
|
Get.to(AddBorrowObjectPage());
|
|
|
|
// Get.to(AddBorrowObjectPage());
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
child: Text(
|
|
|
|
// child: Text(
|
|
|
|
'新增',
|
|
|
|
// '新增',
|
|
|
|
style: TextStyle(
|
|
|
|
// style: TextStyle(
|
|
|
|
fontSize: 28.w,
|
|
|
|
// fontSize: 28.w,
|
|
|
|
color: AppStyle.primaryTextColor,
|
|
|
|
// color: AppStyle.primaryTextColor,
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
),
|
|
|
|
// ),
|
|
|
|
)
|
|
|
|
// )
|
|
|
|
: SizedBox(),
|
|
|
|
// : SizedBox(),
|
|
|
|
],
|
|
|
|
],
|
|
|
|
body: BeeListView(
|
|
|
|
body: BeeListView(
|
|
|
|
path: API.manage.borrowList,
|
|
|
|
path: API.manage.borrowList,
|
|
|
|