@@ -147,70 +147,72 @@ class VideoCardV extends StatelessWidget {
147147 CustomSemanticsAction (label: item.title): item.onTap! ,
148148 },
149149 child: Card (
150- elevation : 0 ,
151- clipBehavior : Clip .hardEdge ,
152- margin : EdgeInsets .zero ,
153- child : GestureDetector (
154- onLongPress : () {
155- // longPress!();
156- },
157- child : InkWell (
158- onTap : () async => onPushDetail (heroTag),
159- child : Column (
160- children : [
161- AspectRatio (
162- aspectRatio : StyleString .aspectRatio,
163- child : LayoutBuilder (builder : (context, boxConstraints) {
164- double maxWidth = boxConstraints.maxWidth;
165- double maxHeight = boxConstraints.maxHeight ;
166- // print('heroTagV: $heroTag') ;
167- return Stack (
168- children : [
169- GestureDetector (
170- onLongPress : () {
171- // 弹窗显示封面
172- SmartDialog . show (
173- useSystem : true ,
174- alignment : Alignment .center ,
175- builder : ( BuildContext context) {
176- return OverlayPop (
177- videoItem : videoItem,
178- closeFn : () {
179- SmartDialog . dismiss ();
180- },
181- );
182- },
183- );
184- },
185- behavior : HitTestBehavior .translucent ,
186- child : Hero (
187- tag : heroTag,
188- child : NetworkImgLayer (
189- src : videoItem.pic,
190- width : maxWidth ,
191- height : maxHeight ,
192- ) ,
150+ color : Theme . of (context).colorScheme.surface. withOpacity ( 0.4 ) ,
151+ elevation : 0 ,
152+ clipBehavior : Clip .hardEdge ,
153+ margin : EdgeInsets .zero,
154+ child : GestureDetector (
155+ onLongPress : () {
156+ // longPress!();
157+ },
158+ child : InkWell (
159+ onTap : () async => onPushDetail (heroTag),
160+ child : Column (
161+ children : [
162+ AspectRatio (
163+ aspectRatio : StyleString .aspectRatio,
164+ child : LayoutBuilder (builder : (context, boxConstraints) {
165+ double maxWidth = boxConstraints.maxWidth ;
166+ double maxHeight = boxConstraints.maxHeight ;
167+ // print('heroTagV: $heroTag');
168+ return Stack (
169+ children : [
170+ GestureDetector (
171+ onLongPress : () {
172+ // 弹窗显示封面
173+ SmartDialog . show (
174+ useSystem : true ,
175+ alignment : Alignment .center,
176+ builder : ( BuildContext context) {
177+ return OverlayPop (
178+ videoItem : videoItem,
179+ closeFn : () {
180+ SmartDialog . dismiss ();
181+ },
182+ );
183+ },
184+ );
185+ } ,
186+ behavior : HitTestBehavior .translucent,
187+ child : Hero (
188+ tag : heroTag,
189+ child : NetworkImgLayer (
190+ src : videoItem.pic ,
191+ width : maxWidth ,
192+ height : maxHeight ,
193193 ),
194194 ),
195- if (videoItem.duration > 0 )
196- PBadge (
197- bottom : 6 ,
198- right : 7 ,
199- size : 'small' ,
200- type : 'gray ' ,
201- text : Utils . timeFormat (videoItem.duration) ,
202- // semanticsLabel:
203- // '时长${Utils.durationReadFormat(Utils.timeFormat(videoItem.duration))}',
204- )
205- ],
206- );
207- }),
208- ),
209- VideoContent (videoItem : videoItem)
210- ],
211- ) ,
195+ ),
196+ if (videoItem.duration > 0 )
197+ PBadge (
198+ bottom : 6 ,
199+ right : 7 ,
200+ size : 'small ' ,
201+ type : 'gray' ,
202+ text : Utils . timeFormat (videoItem.duration),
203+ // semanticsLabel:
204+ // '时长${Utils.durationReadFormat(Utils.timeFormat(videoItem.duration))}',
205+ )
206+ ],
207+ );
208+ } ),
209+ ),
210+ VideoContent (videoItem : videoItem)
211+ ] ,
212212 ),
213- )),
213+ ),
214+ ),
215+ ),
214216 ),
215217 if (videoItem.goto == 'av' )
216218 Positioned (
0 commit comments