GET_CAPSULES_LDE-EKA
Lucas Delanier 2 years ago
parent 20def43443
commit 79d975e05a

@ -99,9 +99,10 @@ class _PostComponentState extends State<PostComponent> {
), ),
), ),
), ),
widget.post.date.isAtSameMomentAs(DateTime.now()) DateTime(today.year, today.month, today.day).isAtSameMomentAs(
DateTime(widget.post.date.year, widget.post.date.month, widget.post.date.day))
? Text( ? Text(
"Aujourd'hui, ${widget.post.date.hour}", "Aujourd'hui, ${widget.post.date.hour}:${widget.post.date.minute}",
style: GoogleFonts.plusJakartaSans( style: GoogleFonts.plusJakartaSans(
color: Colors.white.withOpacity(0.4), color: Colors.white.withOpacity(0.4),
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
@ -165,8 +166,8 @@ class _PostComponentState extends State<PostComponent> {
padding: EdgeInsets.all(12), padding: EdgeInsets.all(12),
child: Container( child: Container(
constraints: BoxConstraints(maxWidth: 140, maxHeight: 140), constraints: BoxConstraints(maxWidth: 140, maxHeight: 140),
width: 80.sp, width: 90.sp,
height: 80.sp, height: 90.sp,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
// add border // add border
@ -268,8 +269,8 @@ class _PostComponentState extends State<PostComponent> {
ClipOval( ClipOval(
child: SizedBox.fromSize( child: SizedBox.fromSize(
// Image radius // Image radius
child: const Image( child: Image(
image: AssetImage("assets/images/exemple_profile.png"), image: NetworkImage(user.pp),
width: 40, width: 40,
), ),
), ),
@ -377,8 +378,8 @@ class _PostComponentState extends State<PostComponent> {
padding: EdgeInsets.all(12), padding: EdgeInsets.all(12),
child: Container( child: Container(
constraints: BoxConstraints(maxWidth: 140, maxHeight: 140), constraints: BoxConstraints(maxWidth: 140, maxHeight: 140),
width: 80.sp, width: 90.sp,
height: 80.sp, height: 90.sp,
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
// add border // add border

@ -20,7 +20,7 @@ class ProfileComponent extends StatelessWidget {
child: ConstrainedBox( child: ConstrainedBox(
constraints: BoxConstraints(maxWidth: 200, maxHeight: 200), constraints: BoxConstraints(maxWidth: 200, maxHeight: 200),
child: Image( child: Image(
image: AssetImage("assets/images/exemple_profile.png"), image: NetworkImage(user.pp),
height: 100.w, height: 100.w,
width: 100.w, width: 100.w,
), ),

@ -189,8 +189,8 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> with TickerProv
child: ClipOval( child: ClipOval(
child: SizedBox.fromSize( child: SizedBox.fromSize(
// Image radius // Image radius
child: const Image( child: Image(
image: AssetImage("assets/images/exemple_profile.png"), image: NetworkImage(MyApp.userViewModel.userCurrent.pp),
width: 30, width: 30,
), ),
), ),

@ -119,7 +119,10 @@ class _FeedScreenState extends State<FeedScreen> with SingleTickerProviderStateM
post: displayFeed[index], post: displayFeed[index],
index: index, index: index,
), ),
Container(height: 10), Container(height: 5),
Text('${displayFeed[index].description ?? ""}',
style: GoogleFonts.plusJakartaSans(color: Colors.white, fontWeight: FontWeight.w200)),
Container(height: 20),
Align( Align(
child: RichText( child: RichText(
text: TextSpan( text: TextSpan(

Loading…
Cancel
Save