QOL: MIH About Package performance improvements
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user