|
...
|
...
|
@@ -2,6 +2,7 @@ import 'dart:convert'; |
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/constant/state.dart';
|
|
|
|
import 'package:one_key/models/table_photo_model.dart';
|
|
|
|
import 'package:one_key/models/upload_img_model.dart';
|
|
|
|
import 'package:one_key/pages/online_check/img_picker_widget.dart';
|
|
...
|
...
|
@@ -21,7 +22,9 @@ import 'package:provider/provider.dart'; |
|
|
|
class TablePhotoManagerPage extends StatefulWidget {
|
|
|
|
final String tid;
|
|
|
|
final String tname;
|
|
|
|
TablePhotoManagerPage({Key key, this.tid, this.tname}) : super(key: key);
|
|
|
|
final FromPage fromPage;
|
|
|
|
TablePhotoManagerPage({Key key, this.tid, this.tname, this.fromPage})
|
|
|
|
: super(key: key);
|
|
|
|
|
|
|
|
@override
|
|
|
|
_TablePhotoManagerPageState createState() => _TablePhotoManagerPageState();
|
|
...
|
...
|
@@ -77,6 +80,7 @@ class _TablePhotoManagerPageState extends State<TablePhotoManagerPage> { |
|
|
|
}
|
|
|
|
}
|
|
|
|
bus.emit("refresh_photo_manager");
|
|
|
|
bus.emit("refresh_photo_invication");
|
|
|
|
}
|
|
|
|
|
|
|
|
print(_uploadImageProvider.tableImageList);
|
|
...
|
...
|
@@ -177,33 +181,37 @@ class _TablePhotoManagerPageState extends State<TablePhotoManagerPage> { |
|
|
|
color: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
fontWeight: FontWeight.bold)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
Navigator.pop(context);
|
|
|
|
// Map temp = await NavigatorUtil
|
|
|
|
// .goPhotoManagerSelectTablePage(
|
|
|
|
// context,
|
|
|
|
// "",
|
|
|
|
// DateTime.now()
|
|
|
|
// .millisecondsSinceEpoch,
|
|
|
|
// "1",
|
|
|
|
// canChoose: true,
|
|
|
|
// object: null,
|
|
|
|
// fromPage: "tablePhoto",
|
|
|
|
// tid: tid);
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// print(temp['tid']);
|
|
|
|
// print(temp['tname']);
|
|
|
|
// tname = temp['tname'];
|
|
|
|
// tid = temp['tid'];
|
|
|
|
// _getTablePhoto(context, temp['tid'],
|
|
|
|
// showLoading: true);
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
child: Text('切换桌位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(32)))),
|
|
|
|
widget.fromPage ==
|
|
|
|
FromPage.FromPagePhotoManagerPage
|
|
|
|
? InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
Navigator.pop(context);
|
|
|
|
// Map temp = await NavigatorUtil
|
|
|
|
// .goPhotoManagerSelectTablePage(
|
|
|
|
// context,
|
|
|
|
// "",
|
|
|
|
// DateTime.now()
|
|
|
|
// .millisecondsSinceEpoch,
|
|
|
|
// "1",
|
|
|
|
// canChoose: true,
|
|
|
|
// object: null,
|
|
|
|
// fromPage: "tablePhoto",
|
|
|
|
// tid: tid);
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// print(temp['tid']);
|
|
|
|
// print(temp['tname']);
|
|
|
|
// tname = temp['tname'];
|
|
|
|
// tid = temp['tid'];
|
|
|
|
// _getTablePhoto(context, temp['tid'],
|
|
|
|
// showLoading: true);
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
child: Text('切换桌位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(32))))
|
|
|
|
: SizedBox(),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Expanded(
|
...
|
...
|
|