Commit d8093190 authored by 林生雨's avatar 林生雨

fix bug

parent 0ae1dc4b
...@@ -348,10 +348,10 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -348,10 +348,10 @@ class LevelTwoState extends BaseState<LevelTwoPage>
children: <Widget>[ children: <Widget>[
Container( Container(
margin: EdgeInsets.only(left: 2, right: 2), margin: EdgeInsets.only(left: 2, right: 2),
child: baseText(element.attrName, 14, Color(0xff282828), child: baseText(element.attrValue, 14, Color(0xff282828),
bold: true), bold: true),
), ),
baseText(element.attrValue, 11, Color(0xff999999)), baseText(element.attrName, 11, Color(0xff999999)),
], ],
), ),
), ),
......
...@@ -56,22 +56,14 @@ class FilterViewState extends State<FilterView> { ...@@ -56,22 +56,14 @@ class FilterViewState extends State<FilterView> {
height: 186, height: 186,
child: Stack( child: Stack(
children: <Widget>[ children: <Widget>[
Positioned( // Positioned(
top: 0, // top: 0,
child: Container( // child: Container(
width: MediaQuery.of(context).size.width, // width: MediaQuery.of(context).size.width,
height: 1, // height: 6,
decoration: BoxDecoration( // child: Image.asset("assets/shadow.png"),
boxShadow: [ // ),
BoxShadow( // ),
color: Color(0x08000000),
offset: Offset(0.0,1.0),
blurRadius: 6.0,
spreadRadius: 0.0),
],
),
),
),
Positioned( Positioned(
top: 54.5, top: 54.5,
right: 15, right: 15,
......
...@@ -28,7 +28,7 @@ class PlanItem extends StatelessWidget { ...@@ -28,7 +28,7 @@ class PlanItem extends StatelessWidget {
if (i != plans.baseAttrs.length - 1) { if (i != plans.baseAttrs.length - 1) {
list.add(Container( list.add(Container(
width: 8.5, width: 8.5,
height: 10, height: 11,
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
child: Container( child: Container(
width: 0.5, width: 0.5,
...@@ -56,11 +56,14 @@ class PlanItem extends StatelessWidget { ...@@ -56,11 +56,14 @@ class PlanItem extends StatelessWidget {
showOprea = showOprea.length > 4 ? showOprea.substring(0, 4) : showOprea; showOprea = showOprea.length > 4 ? showOprea.substring(0, 4) : showOprea;
} }
return Container( return Container(
margin: EdgeInsets.only(top: 4, left: 10, right: 10), width: double.maxFinite,
margin: EdgeInsets.only(top: 4, left: 8, right: 8),
child: Card( child: Card(
elevation: 3.0, shadowColor: Color(0x08000000),
elevation: 2.0,
child: Container( child: Container(
height: 90, height: 90,
width: double.maxFinite,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, borderRadius: BorderRadius.circular(4)), color: Colors.white, borderRadius: BorderRadius.circular(4)),
child: Stack( child: Stack(
...@@ -98,17 +101,18 @@ class PlanItem extends StatelessWidget { ...@@ -98,17 +101,18 @@ class PlanItem extends StatelessWidget {
height: 0, height: 0,
) )
: Container( : Container(
// constraints: BoxConstraints(maxWidth: 60),
margin: EdgeInsets.only(left: 4), margin: EdgeInsets.only(left: 4),
child: Container( child: Container(
padding: EdgeInsets.only( padding: EdgeInsets.only(
top: 2, bottom: 2, left: 3, right: 3), top: 0.5, bottom: 1, left: 3, right: 3),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(2), borderRadius: BorderRadius.circular(2),
color: Color(0xffF0F9F7)), color: Color(0xffF0F9F7)),
alignment: Alignment.center, child: baseText(
child: showOprea,
baseText(showOprea, 11, Color(0xff3FB5AF)), 11,
Color(0xff3FB5AF),
),
), ),
) )
], ],
...@@ -133,7 +137,7 @@ class PlanItem extends StatelessWidget { ...@@ -133,7 +137,7 @@ class PlanItem extends StatelessWidget {
), ),
Positioned( Positioned(
left: 91, left: 91,
bottom: 8, bottom: 12,
child: Container( child: Container(
width: MediaQuery.of(context).size.width - 30 - 91 - 10, width: MediaQuery.of(context).size.width - 30 - 91 - 10,
child: Row( child: Row(
...@@ -164,7 +168,7 @@ class PlanItem extends StatelessWidget { ...@@ -164,7 +168,7 @@ class PlanItem extends StatelessWidget {
), ),
Positioned( Positioned(
left: 92, left: 92,
top: 36, top: 32,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,
......
This diff is collapsed.
...@@ -108,7 +108,7 @@ class PlanProgressBarState extends State<PlanProgressBar> { ...@@ -108,7 +108,7 @@ class PlanProgressBarState extends State<PlanProgressBar> {
widget.highLive.notifyView(textStr); widget.highLive.notifyView(textStr);
} }
double textWidth = textStr.length * 12.0+6; double textWidth =13+ (textStr.length-1) * 6.0+21;
if (textStr == "无限") { if (textStr == "无限") {
textWidth = textStr.length * 14.0+12; textWidth = textStr.length * 14.0+12;
} }
...@@ -152,13 +152,13 @@ class PlanProgressBarState extends State<PlanProgressBar> { ...@@ -152,13 +152,13 @@ class PlanProgressBarState extends State<PlanProgressBar> {
// textLeft >= 0 // textLeft >= 0
child: Container( child: Container(
width: textWidth, width: textWidth,
height: 42, height: 37,
child: Stack( child: Stack(
alignment: AlignmentDirectional.topCenter, alignment: AlignmentDirectional.topCenter,
children: <Widget>[ children: <Widget>[
Container( Container(
width: textWidth, width: textWidth,
height: 37, height: 32,
color: Colors.white, color: Colors.white,
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -168,7 +168,7 @@ class PlanProgressBarState extends State<PlanProgressBar> { ...@@ -168,7 +168,7 @@ class PlanProgressBarState extends State<PlanProgressBar> {
), ),
), ),
Positioned( Positioned(
top: 36.9, top: 31.9,
child: Container( child: Container(
width: 9, width: 9,
height: 5, height: 5,
...@@ -178,7 +178,7 @@ class PlanProgressBarState extends State<PlanProgressBar> { ...@@ -178,7 +178,7 @@ class PlanProgressBarState extends State<PlanProgressBar> {
), ),
), ),
Positioned( Positioned(
top: 10, top: 6,
child: Container( child: Container(
width: textWidth, width: textWidth,
alignment: Alignment.topCenter, alignment: Alignment.topCenter,
......
...@@ -17,6 +17,7 @@ class TopList extends StatefulWidget { ...@@ -17,6 +17,7 @@ class TopList extends StatefulWidget {
double topHeight; double topHeight;
final String rankId; final String rankId;
String tabName; String tabName;
TopList(this.rankId, this.id, this.topHeight, this.tabName); TopList(this.rankId, this.id, this.topHeight, this.tabName);
@override @override
...@@ -75,6 +76,12 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin { ...@@ -75,6 +76,12 @@ class TopListState extends State<TopList> with AutomaticKeepAliveClientMixin {
// extend.SliverOverlapInjector( // extend.SliverOverlapInjector(
// handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context), // handle: NestedScrollView.sliverOverlapAbsorberHandleFor(context),
// ), // ),
SliverToBoxAdapter(
child: Container(
height: 6,
color: Color(0xffF7F6FA),
),
),
StreamBuilder<List<Plans>>( StreamBuilder<List<Plans>>(
stream: _model.datasLive.stream, stream: _model.datasLive.stream,
initialData: _model.datas ?? [], initialData: _model.datas ?? [],
......
...@@ -319,7 +319,7 @@ Widget baseRefreshView(RefreshController refreshController, ...@@ -319,7 +319,7 @@ Widget baseRefreshView(RefreshController refreshController,
// body = baseText("加载失败", 12, Color(0xff545454)); // body = baseText("加载失败", 12, Color(0xff545454));
// } else // } else
if (mode == LoadStatus.noMore) { if (mode == LoadStatus.noMore) {
body = baseText("我们是有底线的", 12, Color(0xff545454)); body = baseText("我们是有底线的", 12, Color(0xff999999));
} }
// else { // else {
// body = Container(); // body = Container();
...@@ -485,7 +485,8 @@ Widget baseSliverAppBar(String url, ...@@ -485,7 +485,8 @@ Widget baseSliverAppBar(String url,
imageUrl: url ?? '', imageUrl: url ?? '',
fit: BoxFit.cover, fit: BoxFit.cover,
) )
: Container(), : Container(
),
), ),
); );
} }
......
...@@ -17,6 +17,7 @@ rm -rf ${projectDir}/build ...@@ -17,6 +17,7 @@ rm -rf ${projectDir}/build
flutter build aar --release --target-platform android-arm flutter build aar --release --target-platform android-arm
#rm -rf /Users/apple/lsy/gengmei_android/gm-flutter/libs/flutterApp.aar #rm -rf /Users/apple/lsy/gengmei_android/gm-flutter/libs/flutterApp.aar
cp -r ${projectDir}/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/zcc/Downloads/gm-flutter/libs/flutterApp.aar #cp -r ${projectDir}/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/zcc/Downloads/gm-flutter/libs/flutterApp.aar
cp -r ${projectDir}/build/host/outputs/repo/com/example/gm_flutter/flutter_release/1.0/flutter_release-1.0.aar /Users/apple/lsy/gengmei_android/libs/flutterApp.aar
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment