QOL: MIH Authentication Package performance improvements

This commit is contained in:
2025-11-28 13:43:51 +02:00
parent 9a75bcc810
commit ef4c3102a9
3 changed files with 32 additions and 10 deletions

View File

@@ -17,6 +17,16 @@ class MihAuthentication extends StatefulWidget {
}
class _MihAuthenticationState extends State<MihAuthentication> {
late final MihSignIn _signIn;
late final MihRegister _register;
@override
void initState() {
super.initState();
_signIn = MihSignIn();
_register = MihRegister();
}
@override
Widget build(BuildContext context) {
return MihPackage(
@@ -32,8 +42,10 @@ class _MihAuthenticationState extends State<MihAuthentication> {
}
List<Widget> getToolBody() {
List<Widget> toolBodies = [MihSignIn(), MihRegister()];
return toolBodies;
return [
_signIn,
_register,
];
}
List<String> getToolTitle() {