fix
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||||
import 'package:flutter_svg/flutter_svg.dart';
|
import 'package:flutter_svg/flutter_svg.dart';
|
||||||
import 'package:real_estate_mobile/core/constants/app_colors.dart';
|
|
||||||
import 'package:real_estate_mobile/features/auth/presentation/providers/auth_provider.dart';
|
import 'package:real_estate_mobile/features/auth/presentation/providers/auth_provider.dart';
|
||||||
import 'package:real_estate_mobile/features/auth/presentation/screens/twitter_login_screen.dart';
|
import 'package:real_estate_mobile/features/auth/presentation/screens/twitter_login_screen.dart';
|
||||||
|
|
||||||
@@ -17,16 +16,6 @@ class SocialLoginButtons extends ConsumerWidget {
|
|||||||
this.mode = 'signup',
|
this.mode = 'signup',
|
||||||
});
|
});
|
||||||
|
|
||||||
void _showComingSoon(BuildContext context) {
|
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
|
||||||
const SnackBar(
|
|
||||||
content: Text('Coming soon'),
|
|
||||||
duration: Duration(seconds: 1),
|
|
||||||
behavior: SnackBarBehavior.floating,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<void> _handleTwitterLogin(BuildContext context, WidgetRef ref) async {
|
Future<void> _handleTwitterLogin(BuildContext context, WidgetRef ref) async {
|
||||||
final result = await Navigator.push<Map<String, dynamic>?>(
|
final result = await Navigator.push<Map<String, dynamic>?>(
|
||||||
context,
|
context,
|
||||||
@@ -50,16 +39,6 @@ class SocialLoginButtons extends ConsumerWidget {
|
|||||||
return Row(
|
return Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
// Apple
|
|
||||||
_SocialButton(
|
|
||||||
onTap: isLoading ? null : () => _showComingSoon(context),
|
|
||||||
child: const Icon(
|
|
||||||
Icons.apple,
|
|
||||||
size: 28,
|
|
||||||
color: AppColors.primaryDark,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
const SizedBox(width: 32),
|
|
||||||
// Google
|
// Google
|
||||||
_SocialButton(
|
_SocialButton(
|
||||||
onTap: isLoading
|
onTap: isLoading
|
||||||
@@ -87,22 +66,6 @@ class SocialLoginButtons extends ConsumerWidget {
|
|||||||
height: 24,
|
height: 24,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 32),
|
|
||||||
// Facebook
|
|
||||||
_SocialButton(
|
|
||||||
onTap: isLoading
|
|
||||||
? null
|
|
||||||
: () => ref.read(authProvider.notifier).signInWithFacebook(
|
|
||||||
role: role,
|
|
||||||
agentTypeId: agentTypeId,
|
|
||||||
mode: mode,
|
|
||||||
),
|
|
||||||
child: SvgPicture.asset(
|
|
||||||
'assets/icons/facebook.svg',
|
|
||||||
width: 24,
|
|
||||||
height: 24,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user