Browse Source

分享修改

dart3_last
fff 2 weeks ago
parent
commit
00e729f8ca
  1. 0
      assets/image/2x/icon_copy_link.webp
  2. 0
      assets/image/3x/icon_copy_link.webp
  3. 0
      assets/image/icon_copy_link.webp
  4. 7
      lib/community/community_view/class_details.dart
  5. 10
      lib/retrofit/retrofit_api.g.dart
  6. 2
      lib/view_widget/share_dialog.dart
  7. 8
      pubspec.lock
  8. 16
      pubspec.yaml

0
assets/image/2x/icon_copy _link.webp → assets/image/2x/icon_copy_link.webp

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
assets/image/3x/icon_copy _link.webp → assets/image/3x/icon_copy_link.webp

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

0
assets/image/icon_copy _link.webp → assets/image/icon_copy_link.webp

Before

Width:  |  Height:  |  Size: 928 B

After

Width:  |  Height:  |  Size: 928 B

7
lib/community/community_view/class_details.dart

@ -646,10 +646,9 @@ class _ClassDetails extends State<ClassDetails> with WidgetsBindingObserver {
/// ///
_delCommentTips(memberComment) { _delCommentTips(memberComment) {
SmartDialog.show( SmartDialog.show(builder: (ctx) => Tips(() {
builder: (ctx) => Tips(() { delComment(memberComment);
delComment(memberComment); }));
}));
} }
share() async { share() async {

10
lib/retrofit/retrofit_api.g.dart

@ -2974,13 +2974,13 @@ class _ApiService implements ApiService {
} }
@override @override
Future<BaseData<dynamic>> rankBuy(Map<String, dynamic> param) async { Future<BaseData<WxPay>> rankBuy(Map<String, dynamic> param) async {
final _extra = <String, dynamic>{}; final _extra = <String, dynamic>{};
final queryParameters = <String, dynamic>{}; final queryParameters = <String, dynamic>{};
final _headers = <String, dynamic>{}; final _headers = <String, dynamic>{};
final _data = <String, dynamic>{}; final _data = <String, dynamic>{};
_data.addAll(param); _data.addAll(param);
final _options = _setStreamType<BaseData<dynamic>>(Options( final _options = _setStreamType<BaseData<WxPay>>(Options(
method: 'POST', method: 'POST',
headers: _headers, headers: _headers,
extra: _extra, extra: _extra,
@ -2997,11 +2997,11 @@ class _ApiService implements ApiService {
baseUrl, baseUrl,
))); )));
final _result = await _dio.fetch<Map<String, dynamic>>(_options); final _result = await _dio.fetch<Map<String, dynamic>>(_options);
late BaseData<dynamic> _value; late BaseData<WxPay> _value;
try { try {
_value = BaseData<dynamic>.fromJson( _value = BaseData<WxPay>.fromJson(
_result.data!, _result.data!,
(json) => json as dynamic, (json) => WxPay.fromJson(json as Map<String, dynamic>),
); );
} on Object catch (e, s) { } on Object catch (e, s) {
errorLogger?.logError(e, s, _options); errorLogger?.logError(e, s, _options);

2
lib/view_widget/share_dialog.dart

@ -24,7 +24,7 @@ class _ShareDialog extends State<ShareDialog> {
"assets/image/icon_weixin.webp", "assets/image/icon_weixin.webp",
"assets/image/icon_pengyouquan.webp", "assets/image/icon_pengyouquan.webp",
"assets/image/icon_share_chat.webp", "assets/image/icon_share_chat.webp",
"assets/image/icon_copy _link.webp" "assets/image/icon_copy_link.webp"
// "assets/image/icon_facebook.webp" // "assets/image/icon_facebook.webp"
]; ];
List<ShareSDKPlatform> platforms = [ List<ShareSDKPlatform> platforms = [

8
pubspec.lock

@ -1269,6 +1269,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.4.1" version: "2.4.1"
sharesdk_plugin:
dependency: "direct main"
description:
name: sharesdk_plugin
sha256: "93044ad1e18efafb64f52487fa138563bd9c7b2a16a23aabdba8db52a576c7a0"
url: "https://pub.dev"
source: hosted
version: "1.3.14"
shelf: shelf:
dependency: transitive dependency: transitive
description: description:

16
pubspec.yaml

@ -39,7 +39,7 @@ dependencies:
tobias: ^3.3.1 tobias: ^3.3.1
#pdf展示 #pdf展示
flutter_pdfview: ^1.3.2 flutter_pdfview: ^1.4.0
gradient_widgets: ^0.6.0 gradient_widgets: ^0.6.0
keframe: ^3.0.0 keframe: ^3.0.0
# keframe: ^2.0.2 #滑动组件卡顿优化 # keframe: ^2.0.2 #滑动组件卡顿优化
@ -54,7 +54,7 @@ dependencies:
# charts_flutter: any # charts_flutter: any
flutter_charts: ^0.5.2 flutter_charts: ^0.5.2
like_button: ^2.0.2 like_button: ^2.0.2
cupertino_icons: ^1.0.2 cupertino_icons: ^1.0.8
flutter_swiper_view: ^1.1.8 flutter_swiper_view: ^1.1.8
flutter_staggered_grid_view: ^0.7.0 # Null safety flutter_staggered_grid_view: ^0.7.0 # Null safety
pull_to_refresh: ^2.0.0 # Null safety pull_to_refresh: ^2.0.0 # Null safety
@ -67,7 +67,7 @@ dependencies:
# location: ^3.2.4 # location: ^3.2.4
dio: ^5.7.0 dio: ^5.7.0
retrofit: ^4.4.1 retrofit: ^4.4.2
json_annotation: ^4.9.0 json_annotation: ^4.9.0
logger: ^2.5.0 logger: ^2.5.0
# dio_log: ^1.3.5 # dio_log: ^1.3.5
@ -82,10 +82,10 @@ dependencies:
visibility_detector: ^0.4.0+2 visibility_detector: ^0.4.0+2
steel_crypt: ^3.0.0+1 steel_crypt: ^3.0.0+1
encrypt: any encrypt: ^5.0.3
event_bus_plus: ^0.6.2 event_bus_plus: ^0.6.2
shared_preferences: ^2.0.20 shared_preferences: ^2.2.3
flutter_smart_dialog: ^4.9.8+5 flutter_smart_dialog: ^4.9.8+5
device_info_plus: ^9.1.2 device_info_plus: ^9.1.2
extended_nested_scroll_view: ^6.2.1 extended_nested_scroll_view: ^6.2.1
@ -118,9 +118,9 @@ dependencies:
# media_info: ^0.9.0 # media_info: ^0.9.0
# flutter_ffmpeg: ^0.4.2 # flutter_ffmpeg: ^0.4.2
package_info_plus: any package_info_plus: ^8.0.2
sharesdk_plugin: ^1.3.10 sharesdk_plugin: ^1.3.14
flutter_spinkit: ^5.2.0 flutter_spinkit: ^5.2.0
# flutter_easyloading: ^3.0.5 # flutter_easyloading: ^3.0.5
@ -152,7 +152,7 @@ dependencies:
widgetpicker: ^0.1.1 widgetpicker: ^0.1.1
# floor: ^1.4.2 # floor: ^1.4.2
sqflite: ^2.2.2 sqflite: ^2.3.3+1
webview_flutter: ^4.7.0 webview_flutter: ^4.7.0
syncfusion_flutter_datepicker: ^24.2.9 syncfusion_flutter_datepicker: ^24.2.9
protobuf: ^3.1.0 protobuf: ^3.1.0

Loading…
Cancel
Save