Ditect if mobile or desktop/tablet
This commit is contained in:
@@ -57,6 +57,8 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
double width = MediaQuery.sizeOf(context).width;
|
||||||
|
theme.setScreenType(width);
|
||||||
precacheImage(theme.loadingImage(), context);
|
precacheImage(theme.loadingImage(), context);
|
||||||
precacheImage(theme.logoImage(), context);
|
precacheImage(theme.logoImage(), context);
|
||||||
precacheImage(theme.logoFrame(), context);
|
precacheImage(theme.logoFrame(), context);
|
||||||
|
|||||||
Reference in New Issue
Block a user