appwrite repo mod

This commit is contained in:
2026-01-21 14:31:52 +01:00
parent 7c509419d6
commit ea3e6426ec
6 changed files with 43 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ import 'package:get/get.dart';
import '../../controllers/home_controller.dart';
class HomePage extends GetView<HomeController> {
static const String namedRoute = '/home';
static const String namedRoute = '/home-page';
const HomePage({super.key});
@override
@@ -15,25 +15,28 @@ class HomePage extends GetView<HomeController> {
child: Scaffold(
appBar: AppBar(
backgroundColor: Colors.grey.shade500,
leading: IconButton(
icon: Icon(Icons.arrow_back, color: Colors.grey.shade200),
onPressed: () {
// Verhindert das Zurücknavigieren
homeCtrl.goToLoginPage();
},
),
title: Text(
homeCtrl.szHeaderHome.value,
style: TextStyle(color: Colors.grey.shade200),
title: Obx(
() => Text(
homeCtrl.szHeaderHome.value,
style: TextStyle(color: Colors.grey.shade200),
),
),
centerTitle: true,
actions: [
IconButton(
icon: Icon(Icons.logout, color: Colors.grey.shade200),
onPressed: () {
homeCtrl.goToLoginPage();
},
),
],
),
body: Container(
decoration: BoxDecoration(color: Colors.grey.shade400),
padding: EdgeInsets.all(20),
child: Center(
child: Text(
'You are on the Home Page...\nPress the back arrow to logout.\nThis is a Template to use...',
'You are on the Home Page...\nPress exit to logout.\nThis is a Template to use...',
style: TextStyle(
color: Colors.grey.shade800,
fontSize: 24,