diff --git a/lib/classification/classification.dart b/lib/classification/classification.dart index 7bcc57782112a74aaf33ffa1def33cc1bb34c9e1..693ad65bbc930ce3e4f109bbe57fb638b39108a6 100644 --- a/lib/classification/classification.dart +++ b/lib/classification/classification.dart @@ -88,8 +88,7 @@ class _ClassificationPageState extends State<ClassificationPage> { children: <Widget>[ GestureDetector( onTap: () async { - String genre = await changeFirebase().getGenreByHex('FF0000'); - print('Get genre by hex ' + genre); + if(!_redSelected){closeAll(); setState(() => _redSelected = true); } else{closeAll();} diff --git a/lib/loginRegister/login.dart b/lib/loginRegister/login.dart index e90d1cc49f403d19f56cf07ee446f21263e2b428..d728d04b1d8da57317979b846f301b093271f178 100644 --- a/lib/loginRegister/login.dart +++ b/lib/loginRegister/login.dart @@ -98,7 +98,7 @@ class _LoginPageState extends State<LoginPage> { : const SizedBox(), loginRegisterButton(context, true, (){ //Todo undo comment - /*FirebaseAuth.instance.signInWithEmailAndPassword( + FirebaseAuth.instance.signInWithEmailAndPassword( email: _emailTextController.text, password: _passwordTextController.text).then((value) { Navigator.push(context, MaterialPageRoute(builder: (context)=>const ClassificationPage())); @@ -106,7 +106,7 @@ class _LoginPageState extends State<LoginPage> { setState(() { _wrongInput = true; }); - });*/ + }); Navigator.push(context, MaterialPageRoute(builder: (context)=>MusicPlayerState(child: const HUD()))); }),