change text artist and title

pull/40/head
Lucas Delanier 2 years ago
parent 53a8d37534
commit 69f6ccab70

@ -381,53 +381,54 @@ class _PostComponentState extends State<PostComponent> with TickerProviderStateM
), ),
)), )),
SizedBox(height: 15), SizedBox(height: 15),
Row( SizedBox(
crossAxisAlignment: CrossAxisAlignment.end, height: 60,
mainAxisAlignment: MainAxisAlignment.spaceBetween, child: Column(
children: [ crossAxisAlignment: CrossAxisAlignment.start,
Flexible( children: [
flex: 8, Row(
child: TextScroll( crossAxisAlignment: CrossAxisAlignment.start,
widget.post.music.artists.first.name!, mainAxisAlignment: MainAxisAlignment.start,
style: GoogleFonts.plusJakartaSans( children: [
height: 1, color: Colors.white, fontWeight: FontWeight.w600, fontSize: 26.h), Expanded(
mode: TextScrollMode.endless, flex: 8,
pauseBetween: Duration(milliseconds: 500), child: Padding(
velocity: Velocity(pixelsPerSecond: Offset(20, 0)), padding: EdgeInsets.only(bottom: 2),
)), child: TextScroll(
Padding( widget.post.music.title!,
padding: EdgeInsets.only(bottom: 10.h, right: 5.w, left: 5.w), style: GoogleFonts.plusJakartaSans(
child: ClipOval( height: 1, color: Colors.white, fontWeight: FontWeight.w600, fontSize: 26.h),
child: Container( mode: TextScrollMode.endless,
width: 5.h, velocity: Velocity(pixelsPerSecond: Offset(50, 20)),
height: 5.h, pauseBetween: Duration(milliseconds: 500),
color: Colors.white, ),
), )),
Container(width: 10),
AutoSizeText(
widget.post.music.date.toString(),
style: GoogleFonts.plusJakartaSans(
color: Colors.white, fontWeight: FontWeight.w600, fontSize: 26.h),
textAlign: TextAlign.end,
maxFontSize: 20,
),
],
), ),
), Expanded(
Expanded( flex: 8,
flex: 8,
child: Padding(
padding: EdgeInsets.only(bottom: 2),
child: TextScroll( child: TextScroll(
widget.post.music.title!, widget.post.music.artists.first.name!,
style: GoogleFonts.plusJakartaSans( style: GoogleFonts.plusJakartaSans(
height: 1, color: Colors.white, fontWeight: FontWeight.w300, fontSize: 16.h), height: 1,
color: Colors.white.withOpacity(0.5),
fontWeight: FontWeight.w300,
fontSize: 16.h),
mode: TextScrollMode.endless, mode: TextScrollMode.endless,
velocity: Velocity(pixelsPerSecond: Offset(50, 20)),
pauseBetween: Duration(milliseconds: 500), pauseBetween: Duration(milliseconds: 500),
), velocity: Velocity(pixelsPerSecond: Offset(20, 0)),
)), )),
Container(width: 10), ],
AutoSizeText( ),
widget.post.music.date.toString(), )
style: GoogleFonts.plusJakartaSans(
color: Colors.white.withOpacity(0.5), fontWeight: FontWeight.w300, fontSize: 16.h),
textAlign: TextAlign.end,
maxFontSize: 20,
),
],
),
], ],
)); ));
}, },

Loading…
Cancel
Save