Files
iiEsaywebUIapp/lib/features/auth/views/connect_signin_page.dart

39 lines
1.2 KiB
Dart
Raw Normal View History

2025-08-10 01:20:45 +05:30
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../../core/widgets/error_boundary.dart';
import '../../../shared/theme/theme_extensions.dart';
import '../../../shared/widgets/conduit_components.dart';
import 'package:conduit/l10n/app_localizations.dart';
2025-08-16 15:51:27 +05:30
import 'server_connection_page.dart';
2025-08-10 01:20:45 +05:30
2025-08-16 15:51:27 +05:30
/// Entry point for the connection and sign-in flow
/// Redirects to the mobile-first two-step process
class ConnectAndSignInPage extends ConsumerWidget {
2025-08-10 01:20:45 +05:30
const ConnectAndSignInPage({super.key});
@override
2025-08-16 15:51:27 +05:30
Widget build(BuildContext context, WidgetRef ref) {
// Directly navigate to the new mobile-first server connection page
WidgetsBinding.instance.addPostFrameCallback((_) {
Navigator.of(context).pushReplacement(
MaterialPageRoute(
builder: (_) => const ServerConnectionPage(),
),
2025-08-10 01:20:45 +05:30
);
});
2025-08-16 15:51:27 +05:30
// Show a simple loading state while transitioning
2025-08-10 01:20:45 +05:30
return ErrorBoundary(
child: Scaffold(
backgroundColor: context.conduitTheme.surfaceBackground,
body: Center(
2025-08-16 15:51:27 +05:30
child: ConduitLoadingIndicator(
message: AppLocalizations.of(context)!.loadingContent,
2025-08-10 01:20:45 +05:30
),
),
),
);
}
}