|
|
|
|
@ -6,8 +6,6 @@ import 'package:hmg_patient_app/uitl/translations_delegate_base.dart';
|
|
|
|
|
import 'package:hmg_patient_app/uitl/utils.dart';
|
|
|
|
|
import 'package:hmg_patient_app/widgets/buttons/defaultButton.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QuickLoginBottomSheet extends StatefulWidget {
|
|
|
|
|
final VoidCallback onPressed;
|
|
|
|
|
final bool isDone;
|
|
|
|
|
@ -17,8 +15,8 @@ class QuickLoginBottomSheet extends StatefulWidget {
|
|
|
|
|
@override
|
|
|
|
|
_QuickLoginBottomSheet createState() => _QuickLoginBottomSheet();
|
|
|
|
|
}
|
|
|
|
|
class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
|
|
|
|
|
class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
@override
|
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
|
return Container(
|
|
|
|
|
@ -30,18 +28,23 @@ class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
padding: const EdgeInsets.all(24),
|
|
|
|
|
child: Column( mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,children: [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
widget.isDone ? Column(children: [
|
|
|
|
|
child: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
|
children: [
|
|
|
|
|
widget.isDone
|
|
|
|
|
? Column(
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [ InkWell(
|
|
|
|
|
children: [
|
|
|
|
|
InkWell(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
|
Navigator.pop(context, true);
|
|
|
|
|
},
|
|
|
|
|
child: SvgPicture.asset("assets/images/svg/cross-circle.svg", width: 24, height: 24)),],),
|
|
|
|
|
child: SvgPicture.asset("assets/images/svg/cross-circle.svg", width: 24, height: 24)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
Utils.showLottie(context: context, assetPath: 'assets/animations/lottie/checkmark.json', width: 120, height: 120, repeat: true),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).allSet,
|
|
|
|
|
@ -50,16 +53,18 @@ class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
],) : Column(
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
: Column(
|
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
|
|
|
|
|
Image.asset("assets/images/lock-icon.png", height: 101,),
|
|
|
|
|
Image.asset(
|
|
|
|
|
"assets/images/lock-icon.png",
|
|
|
|
|
height: 101,
|
|
|
|
|
),
|
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).enableQuickLogin,
|
|
|
|
|
@ -69,9 +74,7 @@ class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
color: Colors.black,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 5),
|
|
|
|
|
|
|
|
|
|
// Description
|
|
|
|
|
Text(
|
|
|
|
|
TranslationBase.of(context).enableMsg,
|
|
|
|
|
@ -81,46 +84,47 @@ class _QuickLoginBottomSheet extends State<QuickLoginBottomSheet> {
|
|
|
|
|
height: 1.5,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(child:
|
|
|
|
|
CustomButton(
|
|
|
|
|
text:TranslationBase.of(context).enableQuickLogin,
|
|
|
|
|
onPressed:widget.onPressed,
|
|
|
|
|
backgroundColor:Color(0xffED1C2B),
|
|
|
|
|
borderColor:Color(0xffED1C2B),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: TranslationBase.of(context).enableQuickLogin,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
widget.onPressed();
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: Color(0xffED1C2B),
|
|
|
|
|
borderColor: Color(0xffED1C2B),
|
|
|
|
|
textColor: Colors.white,
|
|
|
|
|
icon: "assets/images/svg/apple-finder.svg",
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: 16,),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 16,
|
|
|
|
|
),
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.end,
|
|
|
|
|
children: [
|
|
|
|
|
Expanded(child:
|
|
|
|
|
|
|
|
|
|
CustomButton(
|
|
|
|
|
text:TranslationBase.of(context).notNow,
|
|
|
|
|
onPressed: (){ Navigator.pop(context);},
|
|
|
|
|
backgroundColor:Color(0xffFEE9EA),
|
|
|
|
|
borderColor:Color(0xffFEE9EA),
|
|
|
|
|
Expanded(
|
|
|
|
|
child: CustomButton(
|
|
|
|
|
text: TranslationBase.of(context).notNow,
|
|
|
|
|
onPressed: () {
|
|
|
|
|
Navigator.pop(context, true);
|
|
|
|
|
},
|
|
|
|
|
backgroundColor: Color(0xffFEE9EA),
|
|
|
|
|
borderColor: Color(0xffFEE9EA),
|
|
|
|
|
textColor: Colors.red,
|
|
|
|
|
// icon: "assets/images/svg/apple-finder.svg",
|
|
|
|
|
)),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
)],),
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|