You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.2 KiB
79 lines
3.2 KiB
3 years ago
|
// Stack(
|
||
|
// fit: StackFit.expand,
|
||
|
// children: <Widget>[
|
||
|
// InViewNotifierList(
|
||
|
// scrollDirection: Axis.vertical,
|
||
|
// initialInViewIds: ['0'],
|
||
|
// isInViewPortCondition: (double deltaTop, double deltaBottom,
|
||
|
// double viewPortDimension) {
|
||
|
// return deltaTop < (0.5 * viewPortDimension) &&
|
||
|
// deltaBottom > (0.5 * viewPortDimension);
|
||
|
// },
|
||
|
// throttleDuration: Duration(seconds: 1),
|
||
|
// itemCount: 10,
|
||
|
// builder: (BuildContext context, int index) {
|
||
|
// return Container(
|
||
|
// width: double.infinity,
|
||
|
// height: MediaQuery.of(context).size.height,
|
||
|
// alignment: Alignment.center,
|
||
|
// // margin: EdgeInsets.symmetric(vertical: 50.0),
|
||
|
// child: LayoutBuilder(
|
||
|
// builder: (BuildContext context, BoxConstraints constraints) {
|
||
|
// return InViewNotifierWidget(
|
||
|
// id: '$index',
|
||
|
// builder:
|
||
|
// (BuildContext context, bool isInView, Widget child) {
|
||
|
// return ViewPost(
|
||
|
// play: isInView,
|
||
|
// postedAd: new Post(
|
||
|
// aspect: widget.postedAd[index].aspect,
|
||
|
// path:
|
||
|
// "https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",
|
||
|
// postID: widget.postedAd[index].postID,
|
||
|
// publisherID: widget.postedAd[index].publisherID,
|
||
|
// thumbnail: widget.postedAd[index].thumbnail,
|
||
|
// timestamp: widget.postedAd[index].timestamp,
|
||
|
// title: widget.postedAd[index].title,
|
||
|
// ),
|
||
|
// //url:
|
||
|
// // 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4'
|
||
|
// );
|
||
|
// },
|
||
|
// );
|
||
|
// },
|
||
|
// ),
|
||
|
// );
|
||
|
// },
|
||
|
// ),
|
||
|
// Align(
|
||
|
// alignment: Alignment.center,
|
||
|
// child: Container(
|
||
|
// height: 1.0,
|
||
|
// color: Colors.redAccent,
|
||
|
// ),
|
||
|
// ),
|
||
|
// Align(
|
||
|
// alignment: Alignment.topLeft,
|
||
|
// child: InkWell(
|
||
|
// onTap: () {
|
||
|
// Navigator.pop(context);
|
||
|
// },
|
||
|
// child: Container(
|
||
|
// height: 40,
|
||
|
// width: 40,
|
||
|
// margin: EdgeInsets.symmetric(
|
||
|
// vertical: 30.0,
|
||
|
// horizontal: 10,
|
||
|
// ),
|
||
|
// decoration: BoxDecoration(
|
||
|
// color: Color.fromRGBO(0, 0, 0, 0.4),
|
||
|
// shape: BoxShape.circle),
|
||
|
// child: Icon(
|
||
|
// Icons.arrow_back_ios,
|
||
|
// color: Colors.white,
|
||
|
// ),
|
||
|
// ),
|
||
|
// ),
|
||
|
// ),
|
||
|
// ],
|
||
|
// ),
|