|
|
|
@ -5,10 +5,9 @@ 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';
|
|
|
|
|
import 'package:animations/animations.dart';
|
|
|
|
|
|
|
|
|
|
class MainHomePage extends StatefulWidget {
|
|
|
|
|
const MainHomePage({Key? key}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
State<MainHomePage> createState() => _MainHomePage();
|
|
|
|
|
}
|
|
|
|
@ -22,7 +21,7 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
|
alignment: AlignmentDirectional.topCenter,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/background_blur.png',
|
|
|
|
|
'assets/images/background.png',
|
|
|
|
|
height: double.infinity,
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
@ -34,7 +33,7 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
|
|
|
|
|
|
Image.asset(
|
|
|
|
|
'assets/images/Logo.png',
|
|
|
|
|
width: 250,
|
|
|
|
|
width: 200,
|
|
|
|
|
),
|
|
|
|
|
GestureDetector(
|
|
|
|
|
child: Container(
|
|
|
|
@ -62,10 +61,8 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
PageTransition(
|
|
|
|
|
type: PageTransitionType.bottomToTop,
|
|
|
|
|
type: PageTransitionType.rightToLeftJoined,
|
|
|
|
|
childCurrent: widget,
|
|
|
|
|
duration: Duration(milliseconds: 600),
|
|
|
|
|
reverseDuration: Duration(milliseconds: 600),
|
|
|
|
|
child: MainSignUpPage()),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
@ -96,10 +93,8 @@ class _MainHomePage extends State<MainHomePage> {
|
|
|
|
|
onTap: (){
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
PageTransition(
|
|
|
|
|
type: PageTransitionType.bottomToTopJoined,
|
|
|
|
|
type: PageTransitionType.rightToLeftJoined,
|
|
|
|
|
childCurrent: widget,
|
|
|
|
|
duration: Duration(milliseconds: 600),
|
|
|
|
|
reverseDuration: Duration(milliseconds: 600),
|
|
|
|
|
child: MainSignInPage()),
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|