You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/lib/widgets/quick_login.dart

76 lines
2.1 KiB
Dart

import 'package:flutter/material.dart';
import 'package:hmg_patient_app/new_ui/otp/otp_validation_bootmsheet_widget.dart';
import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
import 'package:hmg_patient_app/widgets/buttons/defaultButton.dart';
class QuickLoginBottomSheet extends StatelessWidget {
final VoidCallback onPressed;
const QuickLoginBottomSheet({required this.onPressed});
@override
Widget build(BuildContext context) {
return Container(
decoration: const BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(24),
topRight: Radius.circular(24),
),
),
padding: const EdgeInsets.all(24),
child: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// Header
const Text(
'Enable Quick Login',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
const SizedBox(height: 16),
// Description
const Text(
'Enabling the quick login will verify through your existing device Face ID / Biometric',
style: TextStyle(
fontSize: 16,
color: Color(0xFF666666),
height: 1.5,
),
),
const SizedBox(height: 24),
// Divider
const Divider(height: 1, thickness: 1),
const SizedBox(height: 24),
// Buttons
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Expanded(child:
CustomButton(
text: "Enable Quick Login",
onPressed: onPressed,
backgroundColor: Colors.red,
borderColor: Colors.red,
textColor: Colors.white,
icon: "assets/images/svg/apple_finder.svg",
)),
],
),
],
),
);
}
}