QOL: MIH About Package performance improvements

This commit is contained in:
2025-11-28 12:57:19 +02:00
parent 99f8b1a3f9
commit 4f168c5b0e

View File

@@ -20,8 +20,17 @@ class AboutMih extends StatefulWidget {
}
class _AboutMihState extends State<AboutMih> {
late final MihInfo _info;
late final MihPrivacyPolicy _privacyPolicy;
late final MIHTermsOfService _termsOfService;
late final MihAttributes _attributes;
@override
void initState() {
_info = MihInfo();
_privacyPolicy = MihPrivacyPolicy();
_termsOfService = MIHTermsOfService();
_attributes = MihAttributes();
super.initState();
}
@@ -73,13 +82,12 @@ class _AboutMihState extends State<AboutMih> {
}
List<Widget> getToolBody() {
List<Widget> toolBodies = [
const MihInfo(),
const MihPrivacyPolicy(),
const MIHTermsOfService(),
const MihAttributes(),
return [
_info,
_privacyPolicy,
_termsOfService,
_attributes,
];
return toolBodies;
}
List<String> getToolTitle() {