login and begin listView

This commit is contained in:
2026-04-11 00:05:06 +02:00
parent 122ae48754
commit da7f59f47e
8 changed files with 122 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
import 'package:flutter/widgets.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../controllers/list_controller.dart';
@@ -9,7 +9,36 @@ class ListPage extends GetView<ListController> {
@override
Widget build(BuildContext context) {
var maxWidth = MediaQuery.sizeOf(context).width;
var maxHeight = MediaQuery.sizeOf(context).height;
var listCtrl = controller;
return const Placeholder();
return Obx(
() => SafeArea(
child: Scaffold(
appBar: AppBar(
backgroundColor: Get.theme.colorScheme.primary,
foregroundColor: Get.theme.colorScheme.onPrimary,
title: Text('Liste'),
centerTitle: true,
actions: [IconButton(onPressed: () => listCtrl.exitApp(), icon: Icon(Icons.logout))],
),
body: Container(
width: maxWidth,
height: maxHeight,
decoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Get.theme.colorScheme.primary.withAlpha(26),
Get.theme.colorScheme.primary.withAlpha(13),
],
begin: Alignment.topLeft,
end: Alignment.bottomRight,
),
),
child: Center(child: Text(listCtrl.username.value)),
),
),
),
);
}
}
}