MVP
This commit is contained in:
@@ -37,7 +37,8 @@ class _LoginScreenState extends State<LoginScreen>
|
||||
padding: const EdgeInsets.symmetric(horizontal: 24),
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(
|
||||
minHeight: MediaQuery.of(context).size.height -
|
||||
minHeight:
|
||||
MediaQuery.of(context).size.height -
|
||||
MediaQuery.of(context).padding.top -
|
||||
MediaQuery.of(context).padding.bottom,
|
||||
),
|
||||
@@ -55,10 +56,7 @@ class _LoginScreenState extends State<LoginScreen>
|
||||
const Spacer(),
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(top: 24, bottom: 8),
|
||||
child: Text(
|
||||
'Versão 1.0.0',
|
||||
style: AppText.caption,
|
||||
),
|
||||
child: Text('Versão 1.0.0', style: AppText.caption),
|
||||
),
|
||||
],
|
||||
),
|
||||
@@ -75,16 +73,9 @@ class _LoginScreenState extends State<LoginScreen>
|
||||
Container(
|
||||
width: 84,
|
||||
height: 84,
|
||||
decoration: BoxDecoration(
|
||||
gradient: AppColors.brandGradient,
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
boxShadow: AppShadows.brand,
|
||||
),
|
||||
child: const Icon(
|
||||
Icons.auto_awesome_rounded,
|
||||
color: Colors.white,
|
||||
size: 42,
|
||||
),
|
||||
decoration: BoxDecoration(borderRadius: BorderRadius.circular(24)),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: Image.asset('assets/logoDayMaker.png', fit: BoxFit.cover),
|
||||
),
|
||||
const SizedBox(height: 18),
|
||||
const Text('DayMaker', style: AppText.h1),
|
||||
@@ -245,8 +236,7 @@ class _LoginScreenState extends State<LoginScreen>
|
||||
}
|
||||
setState(() => _isLoading = true);
|
||||
try {
|
||||
final response =
|
||||
await Supabase.instance.client.auth.signInWithPassword(
|
||||
final response = await Supabase.instance.client.auth.signInWithPassword(
|
||||
email: email,
|
||||
password: password,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user