Commit 1f47a0dd authored by 朱翠翠's avatar 朱翠翠

Merge branch 'test' of http://git.wanmeizhensuo.com/linshengyu/gm_flutter into zcc/flutter

parents 3ca56a4b b8a9aaee
...@@ -52,8 +52,8 @@ class _PopView implements ICenterPicker { ...@@ -52,8 +52,8 @@ class _PopView implements ICenterPicker {
child: Container( child: Container(
width: contentWidth, width: contentWidth,
height: _model.popViewLive.data.second.title.length > 13 height: _model.popViewLive.data.second.title.length > 13
? 367.5 ? 377.5
: 310.5, : 325.5,
child: Stack( child: Stack(
alignment: AlignmentDirectional.topCenter, alignment: AlignmentDirectional.topCenter,
children: <Widget>[ children: <Widget>[
......
...@@ -588,7 +588,7 @@ class LevelOneItem extends StatelessWidget { ...@@ -588,7 +588,7 @@ class LevelOneItem extends StatelessWidget {
], ],
)), )),
Container( Container(
margin: EdgeInsets.only(top: 12.5, bottom: 12), margin: EdgeInsets.only(top: 7.5, bottom: 4),
child: Text( child: Text(
cards.diary.content, cards.diary.content,
textScaleFactor: 1.0, textScaleFactor: 1.0,
...@@ -605,7 +605,7 @@ class LevelOneItem extends StatelessWidget { ...@@ -605,7 +605,7 @@ class LevelOneItem extends StatelessWidget {
), ),
baseText("项目${cards.diary.title}", 13, Color(0xff999999)), baseText("项目${cards.diary.title}", 13, Color(0xff999999)),
Container( Container(
margin: EdgeInsets.only(top: 12, bottom: 16), margin: EdgeInsets.only(top: 9, bottom: 16),
height: 14, height: 14,
child: Row( child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
......
...@@ -246,7 +246,9 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -246,7 +246,9 @@ class LevelTwoState extends BaseState<LevelTwoPage>
), ),
]; ];
}, },
body: TabBarView(controller: tabController, children: list)); body: Container(
color: Color(0xffF7F6FA),
child: TabBarView(controller: tabController, children: list)));
} }
List<Widget> getTabs() { List<Widget> getTabs() {
......
...@@ -65,7 +65,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -65,7 +65,7 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
@override @override
void initState() { void initState() {
if (RouterCenterImpl().findMainRouter().isWithNative() && if (RouterCenterImpl().findMainRouter().isWithNative() &&
CacheManager.getInstance().get(MEMORY_CACHE).get(BASE_URL).empty()) { CacheManager.getInstance().get(MEMORY_CACHE).get(BASE_URL) == null) {
func = (str) { func = (str) {
if (str == "init") { if (str == "init") {
_model.init(needCache: true); _model.init(needCache: true);
...@@ -446,70 +446,70 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -446,70 +446,70 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
children: <Widget>[ children: <Widget>[
// Expanded( // Expanded(
// child: // child:
AspectRatio( AspectRatio(
aspectRatio: 335/180, aspectRatio: 335 / 180,
child: StreamBuilder<List<Ranks>>( child: StreamBuilder<List<Ranks>>(
stream: _model.picLive.stream, stream: _model.picLive.stream,
initialData: _model.picLive.data ?? null, initialData: _model.picLive.data ?? null,
builder: (c, data) { builder: (c, data) {
return ClipRRect( return ClipRRect(
borderRadius: BorderRadius.circular(3), borderRadius: BorderRadius.circular(3),
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: imageUrl:
data.data == null ? "" : data.data[0].icon ?? "", data.data == null ? "" : data.data[0].icon ?? "",
fit: BoxFit.cover, fit: BoxFit.cover,
)).gestureDetector(() { )).gestureDetector(() {
Map<String, dynamic> map = { Map<String, dynamic> map = {
"rank_type": "0", "rank_type": "0",
"id": "${data.data[0].id}", "id": "${data.data[0].id}",
"title": "${data.data[0].name}", "title": "${data.data[0].name}",
"business_id": "${data.data[0].id}", "business_id": "${data.data[0].id}",
"referrer_tab_name": "" "referrer_tab_name": ""
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
.jumpPage(context, "favor_plan", map, false); .jumpPage(context, "favor_plan", map, false);
}); });
}, },
),
), ),
),
// ), // ),
Expanded( Expanded(
child: Container(), child: Container(),
), ),
// Container( // Container(
// width: 10, // width: 10,
// ), // ),
// Expanded( // Expanded(
// child: // child:
AspectRatio( AspectRatio(
aspectRatio: 335/180, aspectRatio: 335 / 180,
child: StreamBuilder<List<Ranks>>( child: StreamBuilder<List<Ranks>>(
stream: _model.picLive.stream, stream: _model.picLive.stream,
initialData: _model.picLive.data ?? null, initialData: _model.picLive.data ?? null,
builder: (c, data) { builder: (c, data) {
return ClipRRect( return ClipRRect(
borderRadius: BorderRadius.circular(3), borderRadius: BorderRadius.circular(3),
child: CachedNetworkImage( child: CachedNetworkImage(
imageUrl: imageUrl:
data.data == null ? "" : data.data[1].icon ?? "", data.data == null ? "" : data.data[1].icon ?? "",
fit: BoxFit.cover, fit: BoxFit.cover,
)).gestureDetector(() { )).gestureDetector(() {
Map<String, dynamic> map = { Map<String, dynamic> map = {
"rank_type": "1", "rank_type": "1",
"id": "${data.data[1].id}", "id": "${data.data[1].id}",
"title": "${data.data[1].name}", "title": "${data.data[1].name}",
"business_id": "${data.data[1].id}", "business_id": "${data.data[1].id}",
"referrer_tab_name": "" "referrer_tab_name": ""
}; };
RouterCenterImpl() RouterCenterImpl()
.findMainRouter() .findMainRouter()
.jumpPage(context, "hot_plan", map, false); .jumpPage(context, "hot_plan", map, false);
}); });
}, },
), ),
// ), // ),
) )
], ],
......
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