login and begin listView
This commit is contained in:
@@ -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)),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user