remove smooth star rating pub

remove some s**t code
hmxc
张萌 4 years ago
parent 71092cc28f
commit 9e33172a0c

@ -110,7 +110,10 @@ class _Manager {
String get deleteAdvice => '/user/advice/falseDelete'; String get deleteAdvice => '/user/advice/falseDelete';
/// ///
String get reportRepairCancel => 'user/reportRepair/cancel'; String get reportRepairCancel => '/user/reportRepair/cancel';
///
String get reportRepairComplete => '/user/reportRepair/completeOrder';
} }
class _Upload { class _Upload {

@ -1,10 +1,11 @@
// Flutter imports: // Flutter imports:
import 'package:akuCommunity/base/base_style.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
// Package imports: // Package imports:
import 'package:flutter_icons/flutter_icons.dart'; import 'package:flutter_icons/flutter_icons.dart';
import 'package:smooth_star_rating/smooth_star_rating.dart'; import 'package:flutter_rating_bar/flutter_rating_bar.dart';
// Project imports: // Project imports:
import 'package:akuCommunity/routers/page_routers.dart'; import 'package:akuCommunity/routers/page_routers.dart';
@ -41,8 +42,7 @@ class _ThingsEvaluatePageState extends State<ThingsEvaluatePage> {
children: [ children: [
Text( Text(
'请您对本次服务进行评价', '请您对本次服务进行评价',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff999999)),
fontSize: 28.sp, color: Color(0xff999999)),
), ),
SizedBox(height: 50.w), SizedBox(height: 50.w),
Row( Row(
@ -50,23 +50,31 @@ class _ThingsEvaluatePageState extends State<ThingsEvaluatePage> {
children: [ children: [
Text( Text(
'综合评价', '综合评价',
style: TextStyle( style: TextStyle(fontSize: 28.sp, color: Color(0xff999999)),
fontSize: 28.sp, color: Color(0xff999999)),
), ),
SizedBox(width: 47.w), SizedBox(width: 47.w),
SmoothStarRating( RatingBar(
rating: rating, ignoreGestures: false,
isReadOnly: false, itemSize: 46.w,
size: 46.sp, // filledIconData: AntDesign.star,
filledIconData: AntDesign.star, // // halfFilledIconData: Icons.star_half,
// halfFilledIconData: Icons.star_half, // defaultIconData: AntDesign.staro,
defaultIconData: AntDesign.staro, // color: Color(0xffffc40c),
color: Color(0xffffc40c), // borderColor: Color(0xffffc40c),
borderColor: Color(0xffffc40c), ratingWidget: RatingWidget(
starCount: 5, full: Icon(
AntDesign.star,
color: kPrimaryColor,
),
empty: Icon(
AntDesign.staro,
color: kDarkPrimaryColor,
),
half: Icon(Icons.star_half)),
itemCount: 5,
allowHalfRating: false, allowHalfRating: false,
spacing: 20.w, itemPadding: EdgeInsets.symmetric(horizontal: 10.w),
onRated: (value) { onRatingUpdate: (value) {
print("rating value -> $value"); print("rating value -> $value");
// print("rating value dd -> ${value.truncate()}"); // print("rating value dd -> ${value.truncate()}");
}, },
@ -80,10 +88,7 @@ class _ThingsEvaluatePageState extends State<ThingsEvaluatePage> {
Container _containerTextField(String hintText) { Container _containerTextField(String hintText) {
return Container( return Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(top: 32.w, left: 22.w, right: 35.w),
top: 32.w,
left: 22.w,
right: 35.w),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.all(Radius.circular(8)), borderRadius: BorderRadius.all(Radius.circular(8)),
border: Border.all(color: Color(0xffd4cfbe), width: 1.0), border: Border.all(color: Color(0xffd4cfbe), width: 1.0),
@ -171,8 +176,7 @@ class _ThingsEvaluatePageState extends State<ThingsEvaluatePage> {
Text( Text(
'请输入内容', '请输入内容',
style: TextStyle( style: TextStyle(
fontSize: 28.sp, fontSize: 28.sp, color: Color(0xff333333)),
color: Color(0xff333333)),
), ),
SizedBox(height: 24.w), SizedBox(height: 24.w),
_containerTextField(hintText), _containerTextField(hintText),

@ -0,0 +1,21 @@
import 'package:akuCommunity/widget/bee_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:akuCommunity/utils/headers.dart';
class FixedEvaluatePage extends StatefulWidget {
FixedEvaluatePage({Key key}) : super(key: key);
@override
_FixedEvaluatePageState createState() => _FixedEvaluatePageState();
}
class _FixedEvaluatePageState extends State<FixedEvaluatePage> {
@override
Widget build(BuildContext context) {
return BeeScaffold(title: '评价',body: ListView(
padding: EdgeInsets.symmetric(horizontal: 42.w,vertical: 52.w),
children: [],
).expand(),);
}
}

@ -961,13 +961,6 @@ packages:
url: "https://pub.flutter-io.cn" url: "https://pub.flutter-io.cn"
source: hosted source: hosted
version: "1.0.2" version: "1.0.2"
smooth_star_rating:
dependency: "direct main"
description:
name: smooth_star_rating
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.1.1"
source_span: source_span:
dependency: transitive dependency: transitive
description: description:

@ -50,8 +50,6 @@ dependencies:
photo_view: ^0.10.2 photo_view: ^0.10.2
#图片缓存 #图片缓存
cached_network_image: ^2.3.1 cached_network_image: ^2.3.1
#评价
smooth_star_rating: ^1.1.1
#头像层叠 #头像层叠
image_stack: ^1.1.0 image_stack: ^1.1.0
#弹窗 #弹窗

Loading…
Cancel
Save