calculator and login improvements
This commit is contained in:
@@ -125,7 +125,7 @@ class _LoginPanelContentState extends State<LoginPanelContent> {
|
||||
_loggingIn = true;
|
||||
});
|
||||
try {
|
||||
auth.login(username, password);
|
||||
await auth.login(username, password);
|
||||
print('Login successful');
|
||||
setState(() {
|
||||
_loggingIn = false;
|
||||
@@ -148,7 +148,14 @@ class _LoginPanelContentState extends State<LoginPanelContent> {
|
||||
if (_loggingIn) {
|
||||
loginButtonContent = Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: CircularProgressIndicator(),
|
||||
child: SizedBox(
|
||||
height: 10,
|
||||
width: 10,
|
||||
child: CircularProgressIndicator(
|
||||
color: Theme.of(context).textTheme.bodyLarge?.color,
|
||||
strokeWidth: 2,
|
||||
),
|
||||
),
|
||||
);
|
||||
} else {
|
||||
loginButtonContent = Text("Login");
|
||||
|
||||
Reference in New Issue
Block a user