import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'LogIn_minimal.dart'; class LoginBlack extends StatefulWidget { const LoginBlack({Key? key}) : super(key: key); @override State createState() => _LoginBlackState(); } class _LoginBlackState extends State { @override Widget build(BuildContext context) { const myColor =Colors.green; return Scaffold( body: SingleChildScrollView( child: Stack( children: [ Container( color: Colors.black, height: MediaQuery.of(context).size.height, width: double.infinity, ), Positioned( top: -150, left: -100, child: Container( width: 300, height: 300, decoration: BoxDecoration( borderRadius: BorderRadius.circular(150), color: myColor, ), ), ), Positioned( bottom: -150, right: -100, child: Container( width: 300, height: 300, decoration: BoxDecoration( borderRadius: BorderRadius.circular(150), color: myColor, ), ), ), Padding( padding: const EdgeInsets.only(top: 140, left: 25, right: 25), child: Center( child: Column( children: [ const Text('Sign In',style: TextStyle( color: Colors.white, fontSize: 35, ), ), const SizedBox(height: 20,), TextButton.icon( onPressed: (){ }, icon: const Icon(Icons.adb_outlined,color: Colors.white), label: const Text('Continue with Google',style: TextStyle( color: Colors.white ),), style: TextButton.styleFrom( padding: const EdgeInsets.symmetric(vertical: 10,horizontal: 50), shape: RoundedRectangleBorder( side: const BorderSide( color: Colors.white70 ), borderRadius: BorderRadius.circular(10) ) ), ), const SizedBox(height: 30,), TextButton.icon( onPressed: (){ }, icon: const Icon(Icons.apple,color: Colors.white), label: const Text('Continue with Apple',style: TextStyle( color: Colors.white ),), style: TextButton.styleFrom( padding: const EdgeInsets.symmetric(vertical: 10,horizontal: 50), shape: RoundedRectangleBorder( side: const BorderSide( color: Colors.white70 ), borderRadius: BorderRadius.circular(10) ) ), ), const SizedBox(height: 5,), const Text('or',style: TextStyle( fontSize: 16, color: Colors.white ),), const SizedBox(height: 5,), Column( children:[ ConstrainedBox( constraints: const BoxConstraints( maxWidth: 400, ), child: TextFormField( decoration: InputDecoration( hintText: 'Email', hintStyle: TextStyle(color: Colors.white), enabledBorder: OutlineInputBorder( borderSide: const BorderSide( color: Colors.white, width: 2, ), borderRadius: BorderRadius.circular(10) ), focusedBorder: OutlineInputBorder( borderSide: const BorderSide( color: myColor, width: 2, ), borderRadius: BorderRadius.circular(10) ), ), ) ), const SizedBox(height: 15,), ConstrainedBox( constraints: const BoxConstraints( maxWidth: 400, ), child: TextFormField( obscureText: true, decoration: InputDecoration( hintText: 'Password', hintStyle: TextStyle(color: Colors.white), enabledBorder: OutlineInputBorder( borderSide: const BorderSide( color: Colors.white, width: 2, ), borderRadius: BorderRadius.circular(10) ), focusedBorder: OutlineInputBorder( borderSide: const BorderSide( color: myColor, width: 2, ), borderRadius: BorderRadius.circular(10) ), ), ) ), SizedBox(height: 10,), Text('Forgot Password?'), SizedBox(height: 10,), Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(10), gradient: LinearGradient(colors: [myColor.shade200, myColor.shade500]) ), child: ElevatedButton( onPressed: (){}, style: ElevatedButton.styleFrom( fixedSize: const Size(double.maxFinite, 60), shadowColor: Colors.transparent, backgroundColor: Colors.transparent,), child: const Text('Sign In',style: TextStyle( fontWeight: FontWeight.bold, fontSize: 20 ), ), ), ), SizedBox(height: 10,), Text('Dont have an account? Register', style: TextStyle(color: Colors.white),) ], ), ] ), ), ) ], ), ), ); } }