Commit 28d22877 authored by 林生雨's avatar 林生雨

fix bug

parent d9b7f382
assets/ptr_header_loading01.png

353 Bytes | W: | H:

assets/ptr_header_loading01.png

15.3 KB | W: | H:

assets/ptr_header_loading01.png
assets/ptr_header_loading01.png
assets/ptr_header_loading01.png
assets/ptr_header_loading01.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading02.png

426 Bytes | W: | H:

assets/ptr_header_loading02.png

15.6 KB | W: | H:

assets/ptr_header_loading02.png
assets/ptr_header_loading02.png
assets/ptr_header_loading02.png
assets/ptr_header_loading02.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading03.png

461 Bytes | W: | H:

assets/ptr_header_loading03.png

15.7 KB | W: | H:

assets/ptr_header_loading03.png
assets/ptr_header_loading03.png
assets/ptr_header_loading03.png
assets/ptr_header_loading03.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading04.png

497 Bytes | W: | H:

assets/ptr_header_loading04.png

15.4 KB | W: | H:

assets/ptr_header_loading04.png
assets/ptr_header_loading04.png
assets/ptr_header_loading04.png
assets/ptr_header_loading04.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading05.png

422 Bytes | W: | H:

assets/ptr_header_loading05.png

15.5 KB | W: | H:

assets/ptr_header_loading05.png
assets/ptr_header_loading05.png
assets/ptr_header_loading05.png
assets/ptr_header_loading05.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading06.png

423 Bytes | W: | H:

assets/ptr_header_loading06.png

15.4 KB | W: | H:

assets/ptr_header_loading06.png
assets/ptr_header_loading06.png
assets/ptr_header_loading06.png
assets/ptr_header_loading06.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading07.png

422 Bytes | W: | H:

assets/ptr_header_loading07.png

15.2 KB | W: | H:

assets/ptr_header_loading07.png
assets/ptr_header_loading07.png
assets/ptr_header_loading07.png
assets/ptr_header_loading07.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading08.png

497 Bytes | W: | H:

assets/ptr_header_loading08.png

15.4 KB | W: | H:

assets/ptr_header_loading08.png
assets/ptr_header_loading08.png
assets/ptr_header_loading08.png
assets/ptr_header_loading08.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading09.png

461 Bytes | W: | H:

assets/ptr_header_loading09.png

15.5 KB | W: | H:

assets/ptr_header_loading09.png
assets/ptr_header_loading09.png
assets/ptr_header_loading09.png
assets/ptr_header_loading09.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading10.png

426 Bytes | W: | H:

assets/ptr_header_loading10.png

16 KB | W: | H:

assets/ptr_header_loading10.png
assets/ptr_header_loading10.png
assets/ptr_header_loading10.png
assets/ptr_header_loading10.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading11.png

353 Bytes | W: | H:

assets/ptr_header_loading11.png

16.3 KB | W: | H:

assets/ptr_header_loading11.png
assets/ptr_header_loading11.png
assets/ptr_header_loading11.png
assets/ptr_header_loading11.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading12.png

423 Bytes | W: | H:

assets/ptr_header_loading12.png

17 KB | W: | H:

assets/ptr_header_loading12.png
assets/ptr_header_loading12.png
assets/ptr_header_loading12.png
assets/ptr_header_loading12.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading13.png

468 Bytes | W: | H:

assets/ptr_header_loading13.png

17.3 KB | W: | H:

assets/ptr_header_loading13.png
assets/ptr_header_loading13.png
assets/ptr_header_loading13.png
assets/ptr_header_loading13.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading14.png

485 Bytes | W: | H:

assets/ptr_header_loading14.png

17.7 KB | W: | H:

assets/ptr_header_loading14.png
assets/ptr_header_loading14.png
assets/ptr_header_loading14.png
assets/ptr_header_loading14.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading15.png

425 Bytes | W: | H:

assets/ptr_header_loading15.png

17.7 KB | W: | H:

assets/ptr_header_loading15.png
assets/ptr_header_loading15.png
assets/ptr_header_loading15.png
assets/ptr_header_loading15.png
  • 2-up
  • Swipe
  • Onion skin
assets/ptr_header_loading16.png

425 Bytes | W: | H:

assets/ptr_header_loading16.png

16.9 KB | W: | H:

assets/ptr_header_loading16.png
assets/ptr_header_loading16.png
assets/ptr_header_loading16.png
assets/ptr_header_loading16.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -34,6 +34,7 @@ class _PopView implements ICenterPicker { ...@@ -34,6 +34,7 @@ class _PopView implements ICenterPicker {
VoidCallback dismissCallback; VoidCallback dismissCallback;
double contentWidth; double contentWidth;
DiscussLowPriceModel _model = new DiscussLowPriceModel(); DiscussLowPriceModel _model = new DiscussLowPriceModel();
@override @override
Widget build(BuildContext context, int alp) { Widget build(BuildContext context, int alp) {
contentWidth = MediaQuery.of(context).size.width - 72; contentWidth = MediaQuery.of(context).size.width - 72;
...@@ -51,7 +52,8 @@ class _PopView implements ICenterPicker { ...@@ -51,7 +52,8 @@ class _PopView implements ICenterPicker {
opacity: alp / 255.0, opacity: alp / 255.0,
child: Container( child: Container(
width: contentWidth, width: contentWidth,
height: _model.popViewLive.data.second.title.length > 13 height: _model.popViewLive.data.second.title != null &&
_model.popViewLive.data.second.title.length > 13
? 377.5 ? 377.5
: 330.5, : 330.5,
child: Stack( child: Stack(
...@@ -146,7 +148,7 @@ class _PopView implements ICenterPicker { ...@@ -146,7 +148,7 @@ class _PopView implements ICenterPicker {
Container( Container(
width: contentWidth, width: contentWidth,
alignment: Alignment.center, alignment: Alignment.center,
margin: EdgeInsets.only(bottom: 25,left: 30,right: 30), margin: EdgeInsets.only(bottom: 25, left: 30, right: 30),
child: baseText("${_model.popViewLive.data.second.title}", 18, child: baseText("${_model.popViewLive.data.second.title}", 18,
Color(0xff464646), Color(0xff464646),
bold: true, textAlign: TextAlign.center, maxLines: 2)), bold: true, textAlign: TextAlign.center, maxLines: 2)),
......
...@@ -133,7 +133,9 @@ class LevelOneListState extends State<LevelOneList> ...@@ -133,7 +133,9 @@ class LevelOneListState extends State<LevelOneList>
DiscussLowPricePopView.showPopView( DiscussLowPricePopView.showPopView(
context, context,
widget.pageName, widget.pageName,
"${widget.planId}", data2.cardType == "plan"
? "${data2.plan.plan_id}"
: "${widget.planId}",
_model.data[index].cardType == "hospital" _model.data[index].cardType == "hospital"
? _model.data[index].hospital.hosiptalId ? _model.data[index].hospital.hosiptalId
: "", : "",
......
...@@ -455,7 +455,7 @@ class LevelOneState extends BaseState<LevelOnePage> ...@@ -455,7 +455,7 @@ class LevelOneState extends BaseState<LevelOnePage>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Container( Container(
width: 53.5, width: 55,
child: element.attrName.length < 4 child: element.attrName.length < 4
? Row( ? Row(
children: textList, children: textList,
......
...@@ -415,7 +415,7 @@ class LevelTwoState extends BaseState<LevelTwoPage> ...@@ -415,7 +415,7 @@ class LevelTwoState extends BaseState<LevelTwoPage>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Container( Container(
width: 53.5, width: 55,
child: element.attrName.length < 4 child: element.attrName.length < 4
? Row( ? Row(
children: textList, children: textList,
......
...@@ -348,9 +348,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin { ...@@ -348,9 +348,8 @@ class PlanState extends BaseState<PlanPage> with TickerProviderStateMixin {
handle: handle:
NestedScrollView.sliverOverlapAbsorberHandleFor(context), NestedScrollView.sliverOverlapAbsorberHandleFor(context),
sliver: baseSliverAppBar(null, sliver: baseSliverAppBar(null,
height: 0, height: stateBarHeight,
needpic: false, needpic: false)),
paddingTop: -(kToolbarHeight - stateBarHeight) + 2)),
SliverList( SliverList(
delegate: SliverChildBuilderDelegate((BuildContext c, int i) { delegate: SliverChildBuilderDelegate((BuildContext c, int i) {
if (i == 0) { if (i == 0) {
......
...@@ -11,6 +11,7 @@ import 'package:flutter/rendering.dart'; ...@@ -11,6 +11,7 @@ import 'package:flutter/rendering.dart';
import 'package:flutter_common/commonModel/live/LiveData.dart'; import 'package:flutter_common/commonModel/live/LiveData.dart';
import 'package:gm_flutter/commonModel/bean/Pair.dart'; import 'package:gm_flutter/commonModel/bean/Pair.dart';
import 'package:gm_flutter/commonModel/util/DartUtil.dart'; import 'package:gm_flutter/commonModel/util/DartUtil.dart';
import 'package:gm_flutter/commonModel/view/ImagesAnimation.dart';
import 'package:gm_flutter/commonModel/view/baseTabIndicator.dart'; import 'package:gm_flutter/commonModel/view/baseTabIndicator.dart';
import 'package:gm_flutter/main.mark.dart'; import 'package:gm_flutter/main.mark.dart';
import 'package:lottie/lottie.dart'; import 'package:lottie/lottie.dart';
...@@ -364,8 +365,12 @@ Widget normalRefreshHeader() { ...@@ -364,8 +365,12 @@ Widget normalRefreshHeader() {
// durationSeconds: 1500, // durationSeconds: 1500,
// entry: ImagesAnimationEntry(1, 20, "assets/ptr_header_loading")); // entry: ImagesAnimationEntry(1, 20, "assets/ptr_header_loading"));
body = Lottie.asset("assets/smart_refresh_header.json", // body = Lottie.asset("assets/smart_refresh_header.json",
repeat: true, reverse: false); // width: 55, height: 55, repeat: true, reverse: false);
body = ImagesAnimation(
h: 55,
durationSeconds: 1500,
entry: ImagesAnimationEntry(1, 16, "assets/ptr_header_loading"));
} }
// else if (mode == RefreshStatus.failed) { // else if (mode == RefreshStatus.failed) {
// body = Text("Load Failed!Click retry!"); // body = Text("Load Failed!Click retry!");
......
...@@ -53,8 +53,8 @@ class _InState extends State<ImagesAnimation> with TickerProviderStateMixin { ...@@ -53,8 +53,8 @@ class _InState extends State<ImagesAnimation> with TickerProviderStateMixin {
return new Image.asset( return new Image.asset(
"${widget.entry.basePath}${frame}.png", "${widget.entry.basePath}${frame}.png",
gaplessPlayback: true, //避免图片闪烁 gaplessPlayback: true, //避免图片闪烁
width: widget.w,
height: widget.h, height: widget.h,
fit: BoxFit.fitHeight,
); );
}, },
); );
......
...@@ -11,6 +11,8 @@ import 'package:gm_flutter/commonModel/GMBase.dart'; ...@@ -11,6 +11,8 @@ import 'package:gm_flutter/commonModel/GMBase.dart';
import 'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart'; import 'package:gm_flutter/commonModel/eventbus/SimpleEventBus.dart';
import 'package:lottie/lottie.dart'; import 'package:lottie/lottie.dart';
import 'ImagesAnimation.dart';
// The over-scroll distance that moves the indicator to its maximum // The over-scroll distance that moves the indicator to its maximum
// displacement, as a percentage of the scrollable's container extent. // displacement, as a percentage of the scrollable's container extent.
const double _kDragContainerExtentPercentage = 0.25; const double _kDragContainerExtentPercentage = 0.25;
...@@ -473,10 +475,17 @@ class NestedScrollViewRefreshIndicatorState ...@@ -473,10 +475,17 @@ class NestedScrollViewRefreshIndicatorState
animation: _positionController, animation: _positionController,
builder: (BuildContext context, Widget child) { builder: (BuildContext context, Widget child) {
return Container( return Container(
height: 55, height: 80,
child: Lottie.asset("assets/smart_refresh_header.json", alignment: Alignment.center,
repeat: true, reverse: false), // child:Center(
); // child: Lottie.asset("assets/smart_refresh_header.json",
// repeat: true, reverse: false, fit: BoxFit.fitHeight),
// ),
child: ImagesAnimation(
h: 80,
durationSeconds: 1500,
entry: ImagesAnimationEntry(
1, 16, "assets/ptr_header_loading")));
}, },
), ),
), ),
......
...@@ -19,6 +19,7 @@ bool inProduction = true; ...@@ -19,6 +19,7 @@ bool inProduction = true;
void main() { void main() {
inProduction = bool.fromEnvironment("dart.vm.product"); inProduction = bool.fromEnvironment("dart.vm.product");
print("DEBUG?? ${inProduction}");
navigationService = NavigationService(); navigationService = NavigationService();
WidgetsFlutterBinding.ensureInitialized(); WidgetsFlutterBinding.ensureInitialized();
FlutterError.onError = (FlutterErrorDetails details) async { FlutterError.onError = (FlutterErrorDetails details) async {
......
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