From 6ce5689c23a8a323e66960b90b1e24d68959cb3d Mon Sep 17 00:00:00 2001 From: Ved Prakash Date: Thu, 13 Jan 2022 11:54:44 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/widgets/login_form.dart | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/lib/widgets/login_form.dart b/lib/widgets/login_form.dart index 0d5df31..766b6bc 100644 --- a/lib/widgets/login_form.dart +++ b/lib/widgets/login_form.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:cool_alert/cool_alert.dart'; +import 'package:mal/utils/colors.dart'; import 'package:provider/provider.dart'; import 'package:firebase_auth/firebase_auth.dart'; @@ -16,6 +17,10 @@ class LoginForm extends StatelessWidget { Widget build(BuildContext context) { return AlertDialog( contentPadding: const EdgeInsets.all(10.0), + backgroundColor: + Provider.of(context).themeMode == 'LIGHT' + ? BACKGROUND_LIGHT + : HEADER_DARK.withOpacity(0.7), elevation: 10.0, scrollable: true, content: SizedBox( @@ -30,7 +35,10 @@ class LoginForm extends StatelessWidget { onTap: () { Navigator.of(context).pop(); }, - child: const Icon(Icons.close), + child: const Icon( + Icons.close, + color: Colors.grey, + ), ), ), Center( @@ -44,6 +52,12 @@ class LoginForm extends StatelessWidget { Padding( padding: const EdgeInsets.all(8.0), child: TextField( + style: TextStyle( + color: Provider.of(context) + .themeMode == + 'LIGHT' + ? TEXT_LIGHT + : TEXT_DARK), controller: emailController, cursorColor: Theme.of(context).primaryColor, decoration: InputDecoration( @@ -58,6 +72,12 @@ class LoginForm extends StatelessWidget { Padding( padding: const EdgeInsets.all(8.0), child: TextField( + style: TextStyle( + color: Provider.of(context) + .themeMode == + 'LIGHT' + ? TEXT_LIGHT + : TEXT_DARK), controller: passwordController, obscureText: true, cursorColor: Theme.of(context).primaryColor,