diff --git a/.DS_Store b/.DS_Store index db65cd73..f7e55907 100755 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 82c40d25..238f4a2e 100755 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -608,7 +608,7 @@ 97C146E61CF9000F007C117D /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 1430; + LastUpgradeCheck = 1510; ORGANIZATIONNAME = ""; TargetAttributes = { 97C146ED1CF9000F007C117D = { diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 2820dca7..7596d007 100755 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -1,6 +1,6 @@ createState() => _MessageListXHJPageState(); } -class _MessageListXHJPageState extends State with TickerProviderStateMixin { +class _MessageListXHJPageState extends State + with TickerProviderStateMixin { final MessageListLogic logic = Get.put(MessageListLogic()); final MessageListState state = Get.find().state; @@ -45,31 +46,7 @@ class _MessageListXHJPageState extends State with TickerProv Widget build(BuildContext context) { return Scaffold( backgroundColor: Colors.white, - appBar: widget.showAppBar - ? TitleAppBar( - barTitle: TranslationLoader.lanKeys!.message!.tr, - haveBack: true, - actionsList: [ - TextButton( - child: Text( - '清空'.tr, - style: TextStyle(color: Colors.white, fontSize: 24.sp), - ), - onPressed: () async { - final bool? isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); - if (isDemoMode == false) { - ShowTipView().showIosTipWithContentDialog('是否清空?'.tr, - () async { - logic.deletAllMessageDataRequest(); - }); - } else { - logic.showToast('演示模式'.tr); - } - }, - ), - ], - backgroundColor: AppColors.mainColor) - : null, + appBar: null, body: Column( children: [ SizedBox( @@ -135,7 +112,7 @@ class _MessageListXHJPageState extends State with TickerProv final MessageItemEntity messageItemEntity = state.itemDataList[index]; return Slidable( - key: ValueKey(messageItemEntity.id), + key: ValueKey(messageItemEntity.id), endActionPane: ActionPane( extentRatio: 0.2, motion: const ScrollMotion(), @@ -169,6 +146,25 @@ class _MessageListXHJPageState extends State with TickerProv ), ], ), + floatingActionButton: FloatingActionButton( + backgroundColor: AppColors.mainColor, + child: Icon( + Icons.delete_sweep, + color: AppColors.blackColor, + ), + onPressed: () async { + final bool? isDemoMode = await Storage.getBool(ifIsDemoModeOrNot); + if (isDemoMode == false) { + ShowTipView().showIosTipWithContentDialog('是否清空?'.tr, () async { + logic.deletAllMessageDataRequest(); + }); + } else { + logic.showToast('演示模式'.tr); + } + }, + shape: RoundedRectangleBorder( + borderRadius: BorderRadius.all(Radius.circular(100.r))), + ), ); }