From 210e4e4d4e1bfe8519389649570989170be31339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rayh=C3=A2n=20HASSOU?= Date: Sun, 28 Jan 2024 13:47:16 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'Sources/justMUSIC/?= =?UTF-8?q?lib/screens/welcome=5Fscreen.dart'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../justMUSIC/lib/screens/welcome_screen.dart | 196 +++++++++--------- 1 file changed, 98 insertions(+), 98 deletions(-) diff --git a/Sources/justMUSIC/lib/screens/welcome_screen.dart b/Sources/justMUSIC/lib/screens/welcome_screen.dart index 0180102..7a9c7f3 100644 --- a/Sources/justMUSIC/lib/screens/welcome_screen.dart +++ b/Sources/justMUSIC/lib/screens/welcome_screen.dart @@ -1,98 +1,98 @@ -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; -import 'package:google_fonts/google_fonts.dart'; -import 'package:justmusic/values/constants.dart'; - -import '../components/join_button.dart'; - -class WellcomeScreen extends StatelessWidget { - const WellcomeScreen({Key? key}) : super(key: key); - - @override - Widget build(BuildContext context) { - return Scaffold( - body: Container( - padding: EdgeInsets.all(defaultPadding), - width: double.infinity, - height: double.infinity, - decoration: const BoxDecoration( - image: DecorationImage( - image: AssetImage("assets/images/wellcome_background.png"), - fit: BoxFit.cover, - ), - ), - child: Align( - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Expanded( - flex: 10, - child: Padding( - padding: EdgeInsets.only(bottom: 100), - child: Column( - mainAxisAlignment: MainAxisAlignment.end, - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - "Bienvenue sur,", - style: GoogleFonts.plusJakartaSans( - color: Colors.white, - fontWeight: FontWeight.bold, - fontSize: 34), - ), - Image( - image: AssetImage("assets/images/logo.png"), - width: 230, - ), - SizedBox( - height: 25, - ), - ConstrainedBox( - constraints: BoxConstraints(maxWidth: 520), - child: Text( - "Explore les nouvelles découvertes musicales de tes amis, et partage leur ton mood.", - style: GoogleFonts.plusJakartaSans( - color: Colors.white, - fontWeight: FontWeight.w200, - fontSize: 15), - ), - ), - ], - ), - ), - ), - Expanded( - flex: 3, - child: Column( - mainAxisAlignment: MainAxisAlignment.start, - crossAxisAlignment: CrossAxisAlignment.center, - children: [ - JoinButton(), - SizedBox( - height: defaultPadding, - ), - GestureDetector( - onTap: () { - Navigator.pushNamed(context, '/login'); - }, - child: Padding( - padding: const EdgeInsets.all(3.0), - child: Text( - "Tu as déja un compte? Connexion", - style: GoogleFonts.plusJakartaSans( - color: Colors.white, - fontWeight: FontWeight.w400, - fontSize: 15), - ), - ), - ), - ], - ), - ), - ], - ), - ) /* add child content here */, - ), - ); - } -} +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:google_fonts/google_fonts.dart'; +import 'package:justmusic/values/constants.dart'; + +import '../components/join_button.dart'; + +class WellcomeScreen extends StatelessWidget { + const WellcomeScreen({Key? key}) : super(key: key); + + @override + Widget build(BuildContext context) { + return Scaffold( + body: Container( + padding: EdgeInsets.all(defaultPadding), + width: double.infinity, + height: double.infinity, + decoration: const BoxDecoration( + image: DecorationImage( + image: AssetImage("assets/images/wellcome_background.png"), + fit: BoxFit.cover, + ), + ), + child: Align( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Expanded( + flex: 10, + child: Padding( + padding: EdgeInsets.only(bottom: 100), + child: Column( + mainAxisAlignment: MainAxisAlignment.end, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + "Bienvenue sur,", + style: GoogleFonts.plusJakartaSans( + color: Colors.white, + fontWeight: FontWeight.bold, + fontSize: 34), + ), + Image( + image: AssetImage("assets/images/logo.png"), + width: 230, + ), + SizedBox( + height: 25, + ), + ConstrainedBox( + constraints: BoxConstraints(maxWidth: 520), + child: Text( + "Explore les nouvelles découvertes musicales de tes amis, et partage leur ton mood.", + style: GoogleFonts.plusJakartaSans( + color: Colors.white, + fontWeight: FontWeight.w200, + fontSize: 15), + ), + ), + ], + ), + ), + ), + Expanded( + flex: 3, + child: Column( + mainAxisAlignment: MainAxisAlignment.start, + crossAxisAlignment: CrossAxisAlignment.center, + children: [ + JoinButton(), + SizedBox( + height: defaultPadding, + ), + GestureDetector( + onTap: () { + Navigator.pushNamed(context, '/login'); + }, + child: Padding( + padding: const EdgeInsets.all(3.0), + child: Text( + "Tu as déja un compte ? Connexion", + style: GoogleFonts.plusJakartaSans( + color: Colors.white, + fontWeight: FontWeight.w400, + fontSize: 15), + ), + ), + ), + ], + ), + ), + ], + ), + ) /* add child content here */, + ), + ); + } +}