Commit b3dd72adba6a2729ead6e188d0f6ae93ecad5264

Authored by wdn127929
1 parent 71d6dd5f

方硕bug修复和推送声音添加

... ... @@ -11,14 +11,14 @@ if (flutterRoot == null) {
throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
def flutterVersionCode = "170"
def flutterVersionCode = "180"
if (flutterVersionCode == null) {
flutterVersionCode = '170'
flutterVersionCode = '180'
}
def flutterVersionName = "1.7.0"
def flutterVersionName = "1.8.0"
if (flutterVersionName == null) {
flutterVersionName = '1.7.0'
flutterVersionName = '1.8.0'
}
apply plugin: 'com.android.application'
... ...
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
7babc7873f8d177769b987ba4c6c2911
\ No newline at end of file
0feb5fcd550157bc1a24916743cf7132
\ No newline at end of file
... ...
... ... @@ -27,6 +27,8 @@ PODS:
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- image_picker (0.0.1):
- Flutter
- install_plugin (0.0.1):
- Flutter
- package_info (0.0.1):
... ... @@ -35,12 +37,14 @@ PODS:
- Flutter
- "permission_handler (4.4.0+hotfix.4)":
- Flutter
- photo_manager (0.0.1):
- Flutter
- Reachability (3.2)
- shared_preferences (0.0.1):
- Flutter
- sqflite (0.0.1):
- sqflite (0.0.2):
- Flutter
- FMDB (~> 2.7.2)
- FMDB (>= 2.7.5)
- TPNS-iOS (1.2.7.2)
- tpns_flutter_plugin (1.0.4):
- Flutter
... ... @@ -63,10 +67,12 @@ DEPENDENCIES:
- flutter_statusbarcolor (from `.symlinks/plugins/flutter_statusbarcolor/ios`)
- fluttertoast (from `.symlinks/plugins/fluttertoast/ios`)
- fluwx (from `.symlinks/plugins/fluwx/ios`)
- image_picker (from `.symlinks/plugins/image_picker/ios`)
- install_plugin (from `.symlinks/plugins/install_plugin/ios`)
- package_info (from `.symlinks/plugins/package_info/ios`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- permission_handler (from `.symlinks/plugins/permission_handler/ios`)
- photo_manager (from `.symlinks/plugins/photo_manager/ios`)
- shared_preferences (from `.symlinks/plugins/shared_preferences/ios`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)
- tpns_flutter_plugin (from `.symlinks/plugins/tpns_flutter_plugin/ios`)
... ... @@ -104,6 +110,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/fluttertoast/ios"
fluwx:
:path: ".symlinks/plugins/fluwx/ios"
image_picker:
:path: ".symlinks/plugins/image_picker/ios"
install_plugin:
:path: ".symlinks/plugins/install_plugin/ios"
package_info:
... ... @@ -112,6 +120,8 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/path_provider/ios"
permission_handler:
:path: ".symlinks/plugins/permission_handler/ios"
photo_manager:
:path: ".symlinks/plugins/photo_manager/ios"
shared_preferences:
:path: ".symlinks/plugins/shared_preferences/ios"
sqflite:
... ... @@ -137,13 +147,15 @@ SPEC CHECKSUMS:
fluttertoast: b644586ef3b16f67fae9a1f8754cef6b2d6b634b
fluwx: 07a55ed66bf3a4961e836a2a411b02dcada32902
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
image_picker: 9c3312491f862b28d21ecd8fdf0ee14e601b3f09
install_plugin: a13e7ddd2bab0c701b48cd359c26d0394125b6fb
package_info: 873975fc26034f0b863a300ad47e7f1ac6c7ec62
path_provider: abfe2b5c733d04e238b0d8691db0cfd63a27a93c
permission_handler: 8278954f2382902f63f00dd8828769c0bd6d511b
photo_manager: f7c619c2cc8c2adb8d85c63363babac477de9c67
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
shared_preferences: af6bfa751691cdc24be3045c43ec037377ada40d
sqflite: 4001a31ff81d210346b500c55b17f4d6c7589dd0
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
TPNS-iOS: 9b35473a4a0d07f2c2730ea1e66c6749c2b98095
tpns_flutter_plugin: 8dbbee157aab91a878f64d056c1383726a6c5c4d
url_launcher: 6fef411d543ceb26efce54b05a0a40bfd74cbbef
... ...
... ... @@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
72CAA69425B7E2CA00753A2F /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 72CAA69325B7E2CA00753A2F /* Settings.bundle */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
... ... @@ -35,6 +36,7 @@
22513BD076488FBD50F0303F /* Pods-Runner.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"; sourceTree = "<group>"; };
2DCAB49DF131E02F3BAF38E1 /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
72CAA69325B7E2CA00753A2F /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
... ... @@ -118,6 +120,7 @@
EE6AF8FF2457DB720005E3B9 /* RunnerProfile.entitlements */,
97C146FA1CF9000F007C117D /* Main.storyboard */,
97C146FD1CF9000F007C117D /* Assets.xcassets */,
72CAA69325B7E2CA00753A2F /* Settings.bundle */,
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
97C147021CF9000F007C117D /* Info.plist */,
97C146F11CF9000F007C117D /* Supporting Files */,
... ... @@ -203,6 +206,7 @@
files = (
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
72CAA69425B7E2CA00753A2F /* Settings.bundle in Resources */,
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
);
... ... @@ -257,9 +261,11 @@
"${BUILT_PRODUCTS_DIR}/flutter_app_badger/flutter_app_badger.framework",
"${BUILT_PRODUCTS_DIR}/flutter_statusbarcolor/flutter_statusbarcolor.framework",
"${BUILT_PRODUCTS_DIR}/fluttertoast/fluttertoast.framework",
"${BUILT_PRODUCTS_DIR}/image_picker/image_picker.framework",
"${BUILT_PRODUCTS_DIR}/install_plugin/install_plugin.framework",
"${BUILT_PRODUCTS_DIR}/package_info/package_info.framework",
"${BUILT_PRODUCTS_DIR}/path_provider/path_provider.framework",
"${BUILT_PRODUCTS_DIR}/photo_manager/photo_manager.framework",
"${BUILT_PRODUCTS_DIR}/shared_preferences/shared_preferences.framework",
"${BUILT_PRODUCTS_DIR}/sqflite/sqflite.framework",
"${BUILT_PRODUCTS_DIR}/url_launcher/url_launcher.framework",
... ... @@ -278,9 +284,11 @@
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_app_badger.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/flutter_statusbarcolor.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/fluttertoast.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/image_picker.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/install_plugin.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/package_info.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/path_provider.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/photo_manager.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/shared_preferences.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/sqflite.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/url_launcher.framework",
... ...
... ... @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSCameraUsageDescription</key>
<string>需要您的同意,APP才能访问您的相机来上传消费清单</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
... ... @@ -51,7 +53,7 @@
<true/>
</dict>
<key>NSPhotoLibraryUsageDescription</key>
<string>需要您的同意,APP才能访问您的相册来上传图片</string>
<string>需要您的同意,APP才能访问您的相册来上传消费清单</string>
<key>NSAppleMusicUsageDescription</key>
<string>需要您的同意,APP才能访问媒体资料库</string>
<key>NSCalendarsUsageDescription</key>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>StringsTable</key>
<string>Root</string>
<key>PreferenceSpecifiers</key>
<array>
<dict>
<key>Type</key>
<string>PSGroupSpecifier</string>
<key>Title</key>
<string>Group</string>
</dict>
<dict>
<key>Type</key>
<string>PSTextFieldSpecifier</string>
<key>Title</key>
<string>Name</string>
<key>Key</key>
<string>name_preference</string>
<key>DefaultValue</key>
<string></string>
<key>IsSecure</key>
<false/>
<key>KeyboardType</key>
<string>Alphabet</string>
<key>AutocapitalizationType</key>
<string>None</string>
<key>AutocorrectionType</key>
<string>No</string>
</dict>
<dict>
<key>Type</key>
<string>PSToggleSwitchSpecifier</string>
<key>Title</key>
<string>Enabled</string>
<key>Key</key>
<string>enabled_preference</string>
<key>DefaultValue</key>
<true/>
</dict>
<dict>
<key>Type</key>
<string>PSSliderSpecifier</string>
<key>Key</key>
<string>slider_preference</string>
<key>DefaultValue</key>
<real>0.5</real>
<key>MinimumValue</key>
<integer>0</integer>
<key>MaximumValue</key>
<integer>1</integer>
<key>MinimumValueImage</key>
<string></string>
<key>MaximumValueImage</key>
<string></string>
</dict>
</array>
</dict>
</plist>
... ...
B/* A single strings file, whose title is specified in your preferences schema. The strings files provide the localized content to display to the user for each of your preferences. */
... ...
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
... ... @@ -60,6 +60,9 @@ class CreatedOrderSunModel extends Object {
@JsonKey(name: 'cdate')
String cdate;
@JsonKey(name: 'remark')
String remark;
@JsonKey(name: 'cookbooklist')
List<Cookbooklist> cookbooklist;
... ... @@ -80,6 +83,8 @@ class CreatedOrderSunModel extends Object {
this.cdate,
this.cookbooklist,
this.seller,
this.remark
);
factory CreatedOrderSunModel.fromJson(Map<String, dynamic> srcJson) =>
... ...
... ... @@ -42,7 +42,8 @@ CreatedOrderSunModel _$CreatedOrderSunModelFromJson(Map<String, dynamic> json) {
?.toList(),
json['seller'] == null
? null
: Seller.fromJson(json['seller'] as Map<String, dynamic>));
: Seller.fromJson(json['seller'] as Map<String, dynamic>),
json['remark'] as String);
}
Map<String, dynamic> _$CreatedOrderSunModelToJson(
... ... @@ -59,6 +60,7 @@ Map<String, dynamic> _$CreatedOrderSunModelToJson(
'type': instance.type,
'behavior': instance.behavior,
'cdate': instance.cdate,
'remark': instance.remark,
'cookbooklist': instance.cookbooklist,
'seller': instance.seller
};
... ...
... ... @@ -53,7 +53,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver{
}
handlePostFrame(_){
_scrollController.jumpTo(_scrollController.position.maxScrollExtent);
// _scrollController.jumpTo(_scrollController.position.maxScrollExtent);
}
... ...
... ... @@ -94,10 +94,16 @@ class _MessageHasOrderFoodPageState extends State<MessageHasOrderFoodPage> {
style: TextStyle(
color: MyColours.color_999999,
fontSize: ScreenUtil().setSp(30))),
Text(rightTitle,
style: TextStyle(
color: MyColours.color_333333,
fontSize: ScreenUtil().setSp(30))),
HEmptyView(100),
Expanded(
child: Text(rightTitle,
textAlign: TextAlign.right,
maxLines: 20,
overflow: TextOverflow.ellipsis,
style: TextStyle(
color: MyColours.color_333333,
fontSize: ScreenUtil().setSp(30))),
)
],
);
}
... ... @@ -140,6 +146,18 @@ class _MessageHasOrderFoodPageState extends State<MessageHasOrderFoodPage> {
padding: EdgeInsets.all(ScreenUtil().setWidth(40)),
child: Column(
children: [
_orderFoodProvider.createdOrderSunModel.remark == '' ||
_orderFoodProvider.createdOrderSunModel.remark ==
null
? Container()
: Padding(
padding: EdgeInsets.only(
bottom: ScreenUtil().setWidth(30)),
child: _getRow(
'备注',
_orderFoodProvider
.createdOrderSunModel.remark),
),
_getRow(
'人数', _orderFoodProvider.createdOrderSunModel.pnum),
VEmptyView(30),
... ...
... ... @@ -436,6 +436,8 @@ class _ImgPickerWidgetState extends DisposableState<ImgPickerWidget> {
if (index == count - 1 && index < linjie) {
return InkWell(
onTap: () {
// 触摸收起键盘
FocusScope.of(context).requestFocus(FocusNode());
_openModalBottomSheet(context);
},
child: Container(
... ...
... ... @@ -51,7 +51,9 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
_focusNode.addListener(() {
if (_focusNode.hasFocus) {
//有焦点
_editingController.text = '¥';
if (_editingController.text.length == 0) {
_editingController.text = '¥';
}
} else {
//失去焦点
// _editingController.text = '';
... ... @@ -122,8 +124,10 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
await _onlineCheckEditProvider.updateOrderInfo(context, params);
if (result) {
// 跳转至在线买单处理完的详情页面
NavigatorUtil.goOnlineCheckDetailPage(context,
rid: '${widget.rid}', replace: true);
Future.delayed(Duration(milliseconds: 200), () {
NavigatorUtil.goOnlineCheckDetailPage(context,
rid: '${widget.rid}', replace: true);
});
setMessageStatus();
}
}
... ... @@ -334,46 +338,46 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
Expanded(
flex: 1,
child: TextField(
maxLines: 1,
textAlign: TextAlign.end,
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(34),
color: MyColours.color_353535),
controller: _editingController,
focusNode: _focusNode,
// textAlignVertical: TextAlignVertical.top,
decoration: InputDecoration(
hintText: "点击填写金额",
hintStyle: TextStyle(
color: MyColours.color_9C9C9C,
fontSize: ScreenUtil().setSp(32),
maxLines: 1,
textAlign: TextAlign.end,
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(34),
color: MyColours.color_353535),
controller: _editingController,
focusNode: _focusNode,
keyboardType:
TextInputType.numberWithOptions(decimal: true),
// textAlignVertical: TextAlignVertical.top,
decoration: InputDecoration(
hintText: "点击填写金额",
hintStyle: TextStyle(
color: MyColours.color_9C9C9C,
fontSize: ScreenUtil().setSp(32),
),
// contentPadding:
// EdgeInsets.only(bottom: ScreenUtil().setWidth(17)),
border: InputBorder.none,
),
// contentPadding:
// EdgeInsets.only(bottom: ScreenUtil().setWidth(17)),
border: InputBorder.none,
),
onChanged: (value) {
print(value);
// currentRemark = value;
// print();
setState(() {
if (value != '¥' && value.trim().length > 0) {
btnState = 1;
} else {
btnState = -1;
}
});
},
onEditingComplete: () {
print('fff');
_focusNode.unfocus();
onChanged: (value) {
print(value);
// currentRemark = value;
// print();
setState(() {
if (value != '¥' && value.trim().length > 0) {
btnState = 1;
} else {
btnState = -1;
}
});
},
onEditingComplete: () {
print('fff');
_focusNode.unfocus();
// _editingController.text = '';
// _needNode.unfocus();
},
keyboardType: TextInputType.number,
))
// _editingController.text = '';
// _needNode.unfocus();
}))
],
),
),
... ... @@ -495,79 +499,86 @@ class _OnlineCheckEditPageState extends State<OnlineCheckEditPage> {
}
},
),
body: Padding(
padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
child: Column(
children: [
Expanded(
child: SingleChildScrollView(
controller: _scrollController,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
VEmptyView(40),
//图标
_getLogoWidget(),
VEmptyView(40),
_getTabAndMoneyInfoWidget(),
VEmptyView(10),
// 备注信息
Offstage(
offstage:
_onlineCheckEditProvider.orderInfoSunModel !=
null
? _onlineCheckEditProvider
.orderInfoSunModel.orderRemark ==
''
: true,
child: Container(
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(20)),
child: Text(
_onlineCheckEditProvider.orderInfoSunModel !=
null
? _onlineCheckEditProvider
.orderInfoSunModel.orderRemark
: '',
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_FD5656),
body: InkWell(
onTap: () {
_focusNode.unfocus();
},
child: Padding(
padding:
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(20)),
child: Column(
children: [
Expanded(
child: SingleChildScrollView(
controller: _scrollController,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
VEmptyView(40),
//图标
_getLogoWidget(),
VEmptyView(40),
_getTabAndMoneyInfoWidget(),
VEmptyView(10),
// 备注信息
Offstage(
offstage:
_onlineCheckEditProvider.orderInfoSunModel !=
null
? _onlineCheckEditProvider
.orderInfoSunModel.orderRemark ==
''
: true,
child: Container(
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(20)),
child: Text(
_onlineCheckEditProvider.orderInfoSunModel !=
null
? _onlineCheckEditProvider
.orderInfoSunModel.orderRemark
: '',
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_FD5656),
),
),
),
),
VEmptyView(20),
ImgPickerWidget(scrollController: _scrollController),
VEmptyView(20),
_customInfoWidget()
],
))),
Padding(
padding: EdgeInsets.fromLTRB(ScreenUtil().setWidth(16), 0,
ScreenUtil().setWidth(16), ScreenUtil().setWidth(40)),
child: CommonButton(
width: double.infinity,
height: 84,
fontSize: 34,
content: '发送给顾客',
state: btnState,
onPress: () async {
if (_editingController.text.startsWith('¥') &&
_editingController.text.length == 1) {
Utils.showToast('请输入金额');
setState(() {
btnState = -1;
VEmptyView(20),
ImgPickerWidget(
scrollController: _scrollController),
VEmptyView(20),
_customInfoWidget()
],
))),
Padding(
padding: EdgeInsets.fromLTRB(ScreenUtil().setWidth(16), 0,
ScreenUtil().setWidth(16), ScreenUtil().setWidth(40)),
child: CommonButton(
width: double.infinity,
height: 84,
fontSize: 34,
content: '发送给顾客',
state: btnState,
onPress: () async {
if (_editingController.text.startsWith('¥') &&
_editingController.text.length == 1) {
Utils.showToast('请输入金额');
setState(() {
btnState = -1;
});
return;
}
DialogUtil.confirmDialog(
context, _editingController.text, 426, onTap: () {
Navigator.pop(context);
_updateOrderInfo();
});
return;
}
DialogUtil.confirmDialog(
context, _editingController.text, 426, onTap: () {
Navigator.pop(context);
_updateOrderInfo();
});
},
))
],
)),
},
))
],
)),
),
);
}
}
... ...
... ... @@ -6,8 +6,8 @@ import 'package:one_key/utils/utils.dart';
class Tools {
static const MethodChannel _channel = MethodChannel("com.naji/book");
Future<Map> getIntent() async {
Map result = await _channel.invokeMethod("getIntent");
Future<dynamic> getIntent() async {
dynamic result = await _channel.invokeMethod("getIntent");
return result;
}
}
... ...
... ... @@ -77,10 +77,11 @@ class TableItemState extends State<TableItem> {
table.selected = !(table.selected ?? false);
});
widget.onSelected(table);
} else {
table.selected = !(table.selected ?? false);
widget.onSelected(table);
}
// else {
// table.selected = !(table.selected ?? false);
// widget.onSelected(table);
// }
},
child: Stack(
children: <Widget>[
... ...