Update: 2026-06-26 02:18:42
This commit is contained in:
@@ -21,6 +21,7 @@ import '../../controller/mainController/pages/new_driver.dart';
|
|||||||
import '../../controller/mainController/pages/welcome_call.dart';
|
import '../../controller/mainController/pages/welcome_call.dart';
|
||||||
import '../../main.dart';
|
import '../../main.dart';
|
||||||
import '../widgets/my_scafold.dart';
|
import '../widgets/my_scafold.dart';
|
||||||
|
import '../../login_page.dart';
|
||||||
|
|
||||||
class Main extends StatelessWidget {
|
class Main extends StatelessWidget {
|
||||||
Main({super.key});
|
Main({super.key});
|
||||||
@@ -265,9 +266,10 @@ class Main extends StatelessWidget {
|
|||||||
backgroundColor: Colors.white24,
|
backgroundColor: Colors.white24,
|
||||||
child: IconButton(
|
child: IconButton(
|
||||||
icon: const Icon(Icons.logout, color: Colors.white),
|
icon: const Icon(Icons.logout, color: Colors.white),
|
||||||
onPressed: () {
|
onPressed: () async {
|
||||||
box.erase();
|
box.erase();
|
||||||
Get.offAllNamed('/login');
|
await storage.deleteAll();
|
||||||
|
Get.offAll(() => const LoginPage());
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user