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