Patient registration complete with authentication flow fixed Co-authored-by: Benoy Bose <benoybose@gmail.com> Co-authored-by: Jipson George <152465898+Jipson-cosq@users.noreply.github.com> Reviewed-on: cosqnet/telemednet#3 Reviewed-by: Benoy Bose <benoybose@cosq.net> Co-authored-by: DhanshCOSQ <dhanshas@cosq.net> Co-committed-by: DhanshCOSQ <dhanshas@cosq.net>
95 lines
3.6 KiB
Dart
95 lines
3.6 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:telemednet/route_names.dart';
|
|
|
|
class PatientLandingScreen extends StatelessWidget {
|
|
const PatientLandingScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: Container(
|
|
decoration: BoxDecoration(
|
|
gradient: LinearGradient(
|
|
begin: Alignment.topCenter,
|
|
end: Alignment.bottomCenter,
|
|
colors: [Colors.teal.shade100, Colors.white],
|
|
),
|
|
),
|
|
child: SafeArea(
|
|
child: Column(
|
|
children: [
|
|
Expanded(
|
|
child: Center(
|
|
child: Card(
|
|
margin: const EdgeInsets.symmetric(horizontal: 32),
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(16),
|
|
),
|
|
child: Padding(
|
|
padding: const EdgeInsets.all(24.0),
|
|
child: Column(
|
|
mainAxisSize: MainAxisSize.min,
|
|
children: [
|
|
Align(
|
|
alignment: Alignment.topRight,
|
|
child: TextButton(
|
|
onPressed: () {
|
|
Navigator.of(context).pushNamed(
|
|
RouteNames.patientDashboardScreen);
|
|
},
|
|
child: Text(
|
|
'Skip',
|
|
style: TextStyle(
|
|
color: Colors.teal.shade300,
|
|
fontSize: 16,
|
|
fontWeight: FontWeight.bold),
|
|
),
|
|
),
|
|
),
|
|
Image.asset(
|
|
'images/patient-avathar.png',
|
|
height: 200,
|
|
width: 200,
|
|
),
|
|
const SizedBox(height: 24),
|
|
const Text(
|
|
'Set your medical profile',
|
|
textAlign: TextAlign.center,
|
|
style: TextStyle(
|
|
fontSize: 30,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
),
|
|
const SizedBox(height: 24),
|
|
ElevatedButton(
|
|
onPressed: () {
|
|
Navigator.of(context).pushNamed(
|
|
RouteNames.patientRegistrationScreen);
|
|
},
|
|
style: ElevatedButton.styleFrom(
|
|
backgroundColor: Colors.blue,
|
|
shape: RoundedRectangleBorder(
|
|
borderRadius: BorderRadius.circular(20),
|
|
),
|
|
minimumSize: const Size(double.infinity, 50),
|
|
),
|
|
child: const Text(
|
|
'Continue',
|
|
style:
|
|
TextStyle(fontSize: 18, color: Colors.white),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|