Ditect if mobile or desktop/tablet

This commit is contained in:
2024-09-05 10:57:43 +02:00
parent 63a3e660f5
commit 29c5ed6bac

View File

@@ -57,6 +57,8 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
@override
Widget build(BuildContext context) {
double width = MediaQuery.sizeOf(context).width;
theme.setScreenType(width);
precacheImage(theme.loadingImage(), context);
precacheImage(theme.logoImage(), context);
precacheImage(theme.logoFrame(), context);