fist getx sample with login and .env

This commit is contained in:
2025-10-31 23:23:03 +01:00
parent 45ea3ffa3f
commit 634df4ac6f
18 changed files with 636 additions and 177 deletions

View File

@@ -0,0 +1,9 @@
import 'package:get/get.dart';
import '../../controllers/login_controller.dart';
class LoginBinding extends Bindings {
@override
void dependencies() {
Get.lazyPut<LoginController>(() => LoginController());
}
}

View File

@@ -0,0 +1,16 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../controllers/login_controller.dart';
class LoginPage extends GetView<LoginController> {
static const String namedRoute = '/login';
const LoginPage({super.key});
@override
Widget build(BuildContext context) {
var loginCtrl = controller;
return SafeArea(
child: Scaffold(body: Center(child: Text(loginCtrl.szRemark.value))),
);
}
}