added parking part
parent
f3674ba06f
commit
62bb667cb8
@ -0,0 +1,118 @@
|
||||
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:hmg_patient_app_new/core/app_export.dart';
|
||||
import 'package:hmg_patient_app_new/extensions/string_extensions.dart';
|
||||
import 'package:hmg_patient_app_new/extensions/widget_extensions.dart';
|
||||
import 'package:hmg_patient_app_new/presentation/parking/parking_slot.dart';
|
||||
import 'package:mobile_scanner/mobile_scanner.dart';
|
||||
|
||||
import '../../theme/colors.dart';
|
||||
import '../../widgets/appbar/app_bar_widget.dart';
|
||||
import '../../widgets/routes/custom_page_route.dart';
|
||||
|
||||
class ParkingPage extends StatefulWidget {
|
||||
const ParkingPage({super.key});
|
||||
|
||||
@override
|
||||
State<ParkingPage> createState() => _ParkingPageState();
|
||||
}
|
||||
|
||||
class _ParkingPageState extends State<ParkingPage> {
|
||||
String? scannedCode;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
backgroundColor: AppColors.scaffoldBgColor,
|
||||
appBar: CustomAppBar(
|
||||
onBackPressed: () => Navigator.of(context).pop(),
|
||||
onLanguageChanged: (_) {},
|
||||
hideLogoAndLang: true,
|
||||
),
|
||||
body: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
child: SingleChildScrollView(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text("Parking".needTranslation,
|
||||
style: TextStyle(
|
||||
color: AppColors.textColor,
|
||||
fontSize: 27.f,
|
||||
fontWeight: FontWeight.w600)),
|
||||
Container(
|
||||
decoration: RoundedRectangleBorder()
|
||||
.toSmoothCornerDecoration(
|
||||
color: AppColors.whiteColor,
|
||||
borderRadius: 24.r,
|
||||
hasShadow: true,
|
||||
),
|
||||
// margin: EdgeInsets.all(10),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(16.h),
|
||||
child: Text(
|
||||
"Dr. Sulaiman Al Habib hospital are conduction a test for the emerging corona"
|
||||
" virus and issuing travel certificates 24/7 in a short time and with high accuracy."
|
||||
" Those wishing to benefit from this service can visit one of Dr. Sulaiman Al Habib branches "
|
||||
"to conduct a corona test within few minutes. Dr. Sulaiman Al Habib hospital are conduction"
|
||||
" a test for the emerging corona virus and issuing travel certificates 24/7 in a short time and with high accuracy. "
|
||||
"Those wishing to benefit from this service can visit one of Dr. Sulaiman Al Habib branches to conduct a corona test within few minutes.",
|
||||
style: TextStyle(
|
||||
color: AppColors.textColor,
|
||||
fontSize: 12, height: 1.4, fontWeight: FontWeight.w500),
|
||||
),
|
||||
),
|
||||
).paddingOnly( top: 16, bottom: 16),
|
||||
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
/// Bottom button
|
||||
Container
|
||||
(
|
||||
decoration: RoundedRectangleBorder()
|
||||
.toSmoothCornerDecoration(
|
||||
color: AppColors.whiteColor,
|
||||
borderRadius: 24.r,
|
||||
hasShadow: true,
|
||||
),
|
||||
child: Padding(
|
||||
padding: EdgeInsets.all(24.h),
|
||||
child: SizedBox(
|
||||
width: double.infinity,
|
||||
height: 56,
|
||||
child: ElevatedButton(
|
||||
style: ElevatedButton.styleFrom(
|
||||
backgroundColor: AppColors.primaryRedColor,
|
||||
shape: RoundedRectangleBorder(
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
),
|
||||
onPressed: () {
|
||||
Navigator.of(context).push(
|
||||
CustomPageRoute(
|
||||
page: ParkingSlot(),
|
||||
) );
|
||||
},
|
||||
child: Text(
|
||||
"Read Barcodes",
|
||||
style: TextStyle(
|
||||
fontSize: 18,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue