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