elCaribe app - customization and branding
This commit is contained in:
18
news-app/lib/ui/widgets/videoShimmer.dart
Normal file
18
news-app/lib/ui/widgets/videoShimmer.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:shimmer/shimmer.dart';
|
||||
|
||||
videoShimmer(BuildContext context) {
|
||||
return Shimmer.fromColors(
|
||||
baseColor: Colors.grey.withOpacity(0.6),
|
||||
highlightColor: Colors.grey,
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsetsDirectional.only(top: 15.0),
|
||||
child: ListView.builder(
|
||||
shrinkWrap: true,
|
||||
physics: const AlwaysScrollableScrollPhysics(),
|
||||
itemBuilder: (_, i) => Padding(
|
||||
padding: EdgeInsetsDirectional.only(top: i == 0 ? 0 : 15.0),
|
||||
child: Stack(children: [Container(decoration: BoxDecoration(borderRadius: BorderRadius.circular(10.0), color: Colors.grey.withOpacity(0.6)), height: 215.0)])),
|
||||
itemCount: 6),
|
||||
));
|
||||
}
|
||||
Reference in New Issue
Block a user