feed page finish

pull/14/head
Lucas Delanier 2 years ago
parent bd45fad9ce
commit 4a4280bb2e

@ -116,24 +116,24 @@ class PostComponent extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Flexible( Flexible(
flex: 6, flex: 8,
child: TextScroll( child: TextScroll(
"BOOBA", "BOOBA",
style: GoogleFonts.plusJakartaSans( style: GoogleFonts.plusJakartaSans(
height: 1, height: 1,
color: Colors.white, color: Colors.white,
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
fontSize: 26.sp), fontSize: 26.h),
mode: TextScrollMode.endless, mode: TextScrollMode.endless,
pauseBetween: Duration(milliseconds: 500), pauseBetween: Duration(milliseconds: 500),
velocity: Velocity(pixelsPerSecond: Offset(20, 0)), velocity: Velocity(pixelsPerSecond: Offset(20, 0)),
)), )),
Padding( Padding(
padding: EdgeInsets.only(bottom: 10, right: 7, left: 7), padding: EdgeInsets.only(bottom: 10.h, right: 5.w, left: 5.w),
child: ClipOval( child: ClipOval(
child: Container( child: Container(
width: 5.sp, width: 5.h,
height: 5.sp, height: 5.h,
color: Colors.white, color: Colors.white,
), ),
), ),
@ -148,7 +148,7 @@ class PostComponent extends StatelessWidget {
height: 1, height: 1,
color: Colors.white, color: Colors.white,
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 16.sp), fontSize: 16.h),
mode: TextScrollMode.endless, mode: TextScrollMode.endless,
velocity: Velocity(pixelsPerSecond: Offset(50, 20)), velocity: Velocity(pixelsPerSecond: Offset(50, 20)),
pauseBetween: Duration(milliseconds: 500), pauseBetween: Duration(milliseconds: 500),
@ -160,7 +160,7 @@ class PostComponent extends StatelessWidget {
style: GoogleFonts.plusJakartaSans( style: GoogleFonts.plusJakartaSans(
color: Colors.white.withOpacity(0.5), color: Colors.white.withOpacity(0.5),
fontWeight: FontWeight.w300, fontWeight: FontWeight.w300,
fontSize: 16.sp), fontSize: 16.h),
textAlign: TextAlign.end, textAlign: TextAlign.end,
maxFontSize: 20, maxFontSize: 20,
), ),

@ -118,12 +118,18 @@ class _TopNavBarComponentState extends State<TopNavBarComponent> {
], ],
), ),
), ),
const Flexible( Flexible(
flex: 1, flex: 1,
child: ClipOval(
child: SizedBox.fromSize(
// Image radius
child: Image( child: Image(
image: AssetImage("assets/images/add_friend.png"), image: AssetImage("assets/images/exemple_profile.png"),
width: 25, width: 25,
)) ),
),
),
)
], ],
), ),
), ),

@ -78,10 +78,10 @@ class _FeedScreenState extends State<FeedScreen> {
height: 240.h, height: 240.h,
decoration: BoxDecoration( decoration: BoxDecoration(
gradient: LinearGradient(begin: Alignment.topRight, stops: [ gradient: LinearGradient(begin: Alignment.topRight, stops: [
0, 0.3,
1 1
], colors: [ ], colors: [
bgColor.withOpacity(1), bgColor.withOpacity(0.9),
bgColor.withOpacity(0) bgColor.withOpacity(0)
])), ])),
), ),

Loading…
Cancel
Save