You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
3.5 KiB
99 lines
3.5 KiB
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 */,
|
|
),
|
|
);
|
|
}
|
|
}
|