Ditect if mobile or desktop/tablet
This commit is contained in:
parent
63a3e660f5
commit
29c5ed6bac
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue