diff --git a/lib/community/community_view/class_details.dart b/lib/community/community_view/class_details.dart index 4b7c7db3..d1e0742c 100644 --- a/lib/community/community_view/class_details.dart +++ b/lib/community/community_view/class_details.dart @@ -9,6 +9,7 @@ import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/chapter.dart'; import 'package:huixiang/retrofit/data/course_details.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; +import 'package:huixiang/utils/flutter_utils.dart'; import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/tips_dialog.dart'; import 'package:huixiang/web/web_view/comment_list.dart'; @@ -198,7 +199,7 @@ class _ClassDetails extends State with WidgetsBindingObserver { children: [ Container( height: 22.h, - width: 40.w, + padding:EdgeInsets.only(left:2,right:2), alignment: Alignment.center, decoration: BoxDecoration( borderRadius: BorderRadius.circular(2), diff --git a/lib/community/community_view/home_class.dart b/lib/community/community_view/home_class.dart index cb70851d..937a949d 100644 --- a/lib/community/community_view/home_class.dart +++ b/lib/community/community_view/home_class.dart @@ -202,25 +202,30 @@ class _HomeClass extends State { ), ], ), - Container( - margin: EdgeInsets.only(top: 8,right: 8), - height: 16.h, - width: 30.w, - alignment: Alignment.center, - decoration: BoxDecoration( - borderRadius: - BorderRadius.circular(2), - color: Color(0xFFFFCD00), - ), - child: Text( - ( collect?.tags != null && collect.tags.length > 0 )?collect.tags[0] : "", - style: TextStyle( - fontSize: 12.sp, - fontWeight: MyFontWeight.medium, - color: Color(0xFF634815), + Row( + children: [ + Spacer(), + Container( + margin: EdgeInsets.only(top: 8,right: 8), + padding:EdgeInsets.only(left:2,right:2), + height: 16.h, + alignment: Alignment.center, + decoration: BoxDecoration( + borderRadius: + BorderRadius.circular(2), + color: Color(0xFFFFCD00), + ), + child: Text( + ( collect?.tags != null && collect.tags.length > 0 )?collect.tags[0] : "", + style: TextStyle( + fontSize: 12.sp, + fontWeight: MyFontWeight.medium, + color: Color(0xFF634815), + ), ), ), - ), + ],), + ], ), Expanded(child: diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index a094cf8d..b6b58490 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -82,6 +82,7 @@ class _StoreOrderPage extends State SharedPreferences.getInstance().then((value) { minLogin(value); + queryStoreInfo(); }); }