Skip to content

Commit 971eae1

Browse files
committed
fix: formated file
1 parent 707946a commit 971eae1

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

lib/src/screens/supa_socials_auth.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ class _SupaSocialsAuthState extends State<SupaSocialsAuth> {
6464
minimumSize: MaterialStateProperty.all(
6565
const Size(double.infinity, 0),
6666
),
67-
padding: MaterialStateProperty.all(const EdgeInsets.all(15)),
68-
backgroundColor:
69-
MaterialStateProperty.all(coloredBg ? providers[index].btnBgColor : null),
67+
padding:
68+
MaterialStateProperty.all(const EdgeInsets.all(15)),
69+
backgroundColor: MaterialStateProperty.all(
70+
coloredBg ? providers[index].btnBgColor : null),
7071
),
7172
onPressed: () {
7273
SupabaseAuthUi().socialSignIn(providers[index].name);

lib/src/utils/supabase_auth_ui.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ class SupabaseAuthUi {
6969
}
7070

7171
// social login with Google
72-
Future<bool?> socialSignIn(String socialProvider, [String? redirectUrl]) async {
73-
final provider = Provider.values.byName(socialProvider);
72+
Future<bool?> socialSignIn(String socialProvider,
73+
[String? redirectUrl]) async {
74+
final provider = Provider.values.byName(socialProvider);
7475
return await supaClient.auth.signInWithProvider(provider,
7576
options: AuthOptions(redirectTo: redirectUrl));
7677
}

test/supa_flutter_auth_test.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import 'package:flutter_test/flutter_test.dart';
22

3-
43
void main() {
5-
test('adds one to input values', () {
6-
7-
});
4+
test('adds one to input values', () {});
85
}

0 commit comments

Comments
 (0)