|
@@ -428,7 +428,10 @@ class CartoonMaterialControlsState extends State<CartoonMaterialControls> {
|
|
|
return Image(image: AssetImage("assets/dub_user_play/${widget.isCollect.value == 1 ? "xin.png" : "hxin.png"}", package: 'chewie'), width: 20, height: 20,);
|
|
return Image(image: AssetImage("assets/dub_user_play/${widget.isCollect.value == 1 ? "xin.png" : "hxin.png"}", package: 'chewie'), width: 20, height: 20,);
|
|
|
}
|
|
}
|
|
|
),
|
|
),
|
|
|
- onTap: widget.onTapLove,
|
|
|
|
|
|
|
+ onTap: () {
|
|
|
|
|
+ _cancelAndRestartTimer();
|
|
|
|
|
+ widget.onTapLove();
|
|
|
|
|
+ },
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|
|
@@ -476,7 +479,8 @@ class CartoonMaterialControlsState extends State<CartoonMaterialControls> {
|
|
|
child: Listener(
|
|
child: Listener(
|
|
|
child: ListView.builder(
|
|
child: ListView.builder(
|
|
|
scrollDirection: Axis.horizontal,
|
|
scrollDirection: Axis.horizontal,
|
|
|
- shrinkWrap: true,
|
|
|
|
|
|
|
+ physics: AlwaysScrollableScrollPhysics(),
|
|
|
|
|
+ shrinkWrap: false,
|
|
|
itemCount: widget.moreVideo.length,
|
|
itemCount: widget.moreVideo.length,
|
|
|
itemBuilder: (ctx, index){
|
|
itemBuilder: (ctx, index){
|
|
|
return GestureDetector(
|
|
return GestureDetector(
|
|
@@ -494,7 +498,7 @@ class CartoonMaterialControlsState extends State<CartoonMaterialControls> {
|
|
|
children: <Widget>[
|
|
children: <Widget>[
|
|
|
ClipRRect(
|
|
ClipRRect(
|
|
|
borderRadius: BorderRadius.circular(15),
|
|
borderRadius: BorderRadius.circular(15),
|
|
|
- child: Image.network(widget.moreVideo[index].imageUrl, fit: BoxFit.fill,),
|
|
|
|
|
|
|
+ child: Image.network(widget.moreVideo[index].imageUrl, fit: BoxFit.cover, width: 100, height: 60,),
|
|
|
),
|
|
),
|
|
|
Align(
|
|
Align(
|
|
|
alignment: Alignment.bottomRight,
|
|
alignment: Alignment.bottomRight,
|
|
@@ -651,18 +655,6 @@ class CartoonMaterialControlsState extends State<CartoonMaterialControls> {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- void _onExpandCollapse() {
|
|
|
|
|
- setState(() {
|
|
|
|
|
- _hideStuff = true;
|
|
|
|
|
- chewieController.toggleFullScreen();
|
|
|
|
|
- _showAfterExpandCollapseTimer = Timer(Duration(milliseconds: 300), () {
|
|
|
|
|
- setState(() {
|
|
|
|
|
- _cancelAndRestartTimer();
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
void _playPause() {
|
|
void _playPause() {
|
|
|
bool isFinished = _latestValue.position >= _latestValue.duration;
|
|
bool isFinished = _latestValue.position >= _latestValue.duration;
|
|
|
|
|
|