初始化个人页面模板

This commit is contained in:
胡天 2023-07-23 20:35:59 +08:00
parent e650433e4c
commit 443f3edcc0
4 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,10 @@
import 'package:get/get.dart';
import 'account_controller.dart';
class AccountBinding extends Bindings {
@override
void dependencies() {
Get.lazyPut(() => AccountController());
}
}

View File

@ -0,0 +1,7 @@
import 'package:get/get.dart';
import 'account_state.dart';
class AccountController extends GetxController {
final AccountState state = AccountState();
}

View File

@ -0,0 +1,14 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'account_controller.dart';
class AccountPage extends GetView<AccountController> {
const AccountPage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container();
}
}

View File

@ -0,0 +1,5 @@
class AccountState {
AccountState() {
///Initialize variables
}
}