5/2/passnew

This commit is contained in:
Hamza-Ayed
2024-05-02 15:01:01 +03:00
parent dd4e3a2e20
commit 4f2ccf6495
86 changed files with 130 additions and 13430 deletions

View File

@@ -7,7 +7,6 @@ import 'package:SEFER/constant/box_name.dart';
import 'package:SEFER/constant/colors.dart';
import 'package:SEFER/constant/style.dart';
import 'package:SEFER/main.dart';
import 'package:SEFER/views/auth/captin/login_captin.dart';
import 'package:SEFER/views/widgets/elevated_btn.dart';
import 'package:SEFER/views/widgets/my_scafold.dart';
import 'package:SEFER/views/widgets/my_textField.dart';
@@ -30,46 +29,6 @@ class LoginPage extends StatelessWidget {
builder: (controller) => MyScafolld(
title: 'Login'.tr,
isleading: false,
action: GestureDetector(
onLongPress: () {
Get.defaultDialog(
title: 'Admin DashBoard',
titleStyle: AppStyle.title,
content: Form(
key: controller.formKeyAdmin,
child: Column(
children: [
MyTextForm(
controller: controller.adminNameController,
label: 'Your name'.tr,
hint: 'Your name',
type: TextInputType.name),
const SizedBox(
height: 10,
),
MyTextForm(
controller: controller.adminPasswordController,
label: 'Your password'.tr,
hint: 'Your password',
type: TextInputType.emailAddress),
const SizedBox(
height: 10,
),
],
),
),
confirm: MyElevatedButton(
title: 'title'.tr,
onPressed: () {
controller.adminDashboardOpen();
},
),
);
},
child: const Icon(
Icons.dashboard,
color: AppColor.redColor,
)),
body: [
if (box.read(BoxName.agreeTerms) != 'agreed')
agreedPage()
@@ -238,29 +197,29 @@ class LoginPage extends StatelessWidget {
const SizedBox(
height: 100,
),
GestureDetector(
onTap: () => Get.to(LoginCaptin()),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
const Icon(
Icons.drive_eta_rounded,
size: 50,
),
Text(
'If You Want be Driver \nClick Here.'.tr,
style: AppStyle.headTitle2,
textAlign: TextAlign.center,
),
],
),
),
IconButton(
onPressed: () {
box.remove(BoxName.countryCode);
},
icon: const Icon(Icons.delete),
),
// GestureDetector(
// onTap: () => Get.to(LoginCaptin()),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// children: [
// const Icon(
// Icons.drive_eta_rounded,
// size: 50,
// ),
// Text(
// 'If You Want be Driver \nClick Here.'.tr,
// style: AppStyle.headTitle2,
// textAlign: TextAlign.center,
// ),
// ],
// ),
// ),
// IconButton(
// onPressed: () {
// box.remove(BoxName.countryCode);
// },
// icon: const Icon(Icons.delete),
// ),
],
),
)