quick login enable
parent
00f1c46d02
commit
4d2efee297
@ -0,0 +1,76 @@
|
|||||||
|
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",
|
||||||
|
)),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue