|
|
@ -1,5 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
import 'package:page_transition/page_transition.dart';
|
|
|
|
|
|
|
|
import 'package:daflmusic/signInPage/main_signIn_page.dart';
|
|
|
|
|
|
|
|
import 'package:daflmusic/homePage/main_homepage.dart';
|
|
|
|
|
|
|
|
import 'package:daflmusic/signUpPage/main_signUp_page.dart';
|
|
|
|
|
|
|
|
|
|
|
|
class MainHomePage extends StatefulWidget {
|
|
|
|
class MainHomePage extends StatefulWidget {
|
|
|
|
const MainHomePage({Key? key}) : super(key: key);
|
|
|
|
const MainHomePage({Key? key}) : super(key: key);
|
|
|
@ -31,7 +36,8 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
'assets/images/Logo.png',
|
|
|
|
'assets/images/Logo.png',
|
|
|
|
width: 250,
|
|
|
|
width: 250,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Align(
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text("CONTINUER AVEC SPOTIFY",
|
|
|
|
child: Text("CONTINUER AVEC SPOTIFY",
|
|
|
@ -51,8 +57,19 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
),// Set rounded corner radius
|
|
|
|
),// Set rounded corner radius
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),),
|
|
|
|
Container(
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
onTap: (){
|
|
|
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
|
|
|
PageTransition(
|
|
|
|
|
|
|
|
type: PageTransitionType.bottomToTop,
|
|
|
|
|
|
|
|
childCurrent: widget,
|
|
|
|
|
|
|
|
duration: Duration(milliseconds: 600),
|
|
|
|
|
|
|
|
reverseDuration: Duration(milliseconds: 600),
|
|
|
|
|
|
|
|
child: MainSignUpPage()),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Align(
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text("S’INSCRIRE MAINTENANT",
|
|
|
|
child: Text("S’INSCRIRE MAINTENANT",
|
|
|
@ -73,9 +90,20 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
),// Set rounded corner radius
|
|
|
|
),// Set rounded corner radius
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),),
|
|
|
|
SizedBox(height: 220,),
|
|
|
|
SizedBox(height: 220,),
|
|
|
|
Container(
|
|
|
|
GestureDetector(
|
|
|
|
|
|
|
|
onTap: (){
|
|
|
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
|
|
|
PageTransition(
|
|
|
|
|
|
|
|
type: PageTransitionType.bottomToTopJoined,
|
|
|
|
|
|
|
|
childCurrent: widget,
|
|
|
|
|
|
|
|
duration: Duration(milliseconds: 600),
|
|
|
|
|
|
|
|
reverseDuration: Duration(milliseconds: 600),
|
|
|
|
|
|
|
|
child: MainSignInPage()),
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
child: Container(
|
|
|
|
child: Align(
|
|
|
|
child: Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text("SE CONNECTER",
|
|
|
|
child: Text("SE CONNECTER",
|
|
|
@ -94,6 +122,7 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|