Api client injection

This commit is contained in:
Andrew 2023-04-08 13:45:21 +07:00
parent e616cca391
commit 09c9549004
2 changed files with 4 additions and 1 deletions

View file

@ -16,7 +16,7 @@ class LoginPage extends StatefulWidget {
class _LoginPageState extends State<LoginPage> with TickerProviderStateMixin {
final _formKey = GlobalKey<FormState>();
final apiClient = ApiClient.fromString("http://127.0.0.1:8000");
final apiClient = Get.find<ApiClient>();
var submitted = false;
final loginController = TextEditingController();