Update: 2026-06-26 02:18:42

This commit is contained in:
Hamza-Ayed
2026-06-26 02:18:42 +03:00
parent 482143ce11
commit fe164a006b

View File

@@ -21,6 +21,7 @@ import '../../controller/mainController/pages/new_driver.dart';
import '../../controller/mainController/pages/welcome_call.dart';
import '../../main.dart';
import '../widgets/my_scafold.dart';
import '../../login_page.dart';
class Main extends StatelessWidget {
Main({super.key});
@@ -265,9 +266,10 @@ class Main extends StatelessWidget {
backgroundColor: Colors.white24,
child: IconButton(
icon: const Icon(Icons.logout, color: Colors.white),
onPressed: () {
onPressed: () async {
box.erase();
Get.offAllNamed('/login');
await storage.deleteAll();
Get.offAll(() => const LoginPage());
},
),
),