|
|
@ -1,5 +1,4 @@
|
|
|
|
import 'package:auto_size_text/auto_size_text.dart';
|
|
|
|
import 'package:auto_size_text/auto_size_text.dart';
|
|
|
|
import 'package:cached_network_image/cached_network_image.dart';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
@ -130,13 +129,10 @@ class _PostComponentState extends State<PostComponent> with TickerProviderStateM
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
SizedBox(
|
|
|
|
SizedBox(
|
|
|
|
width: double.infinity,
|
|
|
|
width: double.infinity,
|
|
|
|
child: CachedNetworkImage(
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
imageUrl: widget.post.music.cover!,
|
|
|
|
image: widget.post.music.cover!,
|
|
|
|
fadeInDuration: const Duration(milliseconds: 200),
|
|
|
|
fadeInDuration: const Duration(milliseconds: 100),
|
|
|
|
placeholder: (context, url) => Image(
|
|
|
|
placeholder: "assets/images/loadingPlaceholder.gif",
|
|
|
|
image: AssetImage("assets/images/loadingPlaceholder.gif"),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Image(
|
|
|
|
Image(
|
|
|
@ -177,14 +173,11 @@ class _PostComponentState extends State<PostComponent> with TickerProviderStateM
|
|
|
|
child: ClipRRect(
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(13),
|
|
|
|
borderRadius: BorderRadius.circular(13),
|
|
|
|
// implement image
|
|
|
|
// implement image
|
|
|
|
child: CachedNetworkImage(
|
|
|
|
child: FadeInImage.assetNetwork(
|
|
|
|
imageUrl: widget.post.selfie!,
|
|
|
|
image: widget.post.selfie!,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
fadeInDuration: const Duration(milliseconds: 200),
|
|
|
|
fadeInDuration: const Duration(milliseconds: 100),
|
|
|
|
placeholder: (context, url) => Image(
|
|
|
|
placeholder: "assets/images/loadingPlaceholder.gif",
|
|
|
|
image: AssetImage("assets/images/loadingPlaceholder.gif"),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
errorWidget: (context, url, error) => Icon(Icons.error),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|