初始化个人页面模板
This commit is contained in:
parent
e650433e4c
commit
443f3edcc0
|
@ -0,0 +1,10 @@
|
|||
import 'package:get/get.dart';
|
||||
|
||||
import 'account_controller.dart';
|
||||
|
||||
class AccountBinding extends Bindings {
|
||||
@override
|
||||
void dependencies() {
|
||||
Get.lazyPut(() => AccountController());
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
import 'package:get/get.dart';
|
||||
|
||||
import 'account_state.dart';
|
||||
|
||||
class AccountController extends GetxController {
|
||||
final AccountState state = AccountState();
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
class AccountState {
|
||||
AccountState() {
|
||||
///Initialize variables
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue