show install MIH only for Web
This commit is contained in:
@@ -239,8 +239,10 @@ class _RegisterState extends State<Register> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
MIHAction getSecondaryActionButton() {
|
Widget getSecondaryActionButton() {
|
||||||
return MIHAction(
|
return Visibility(
|
||||||
|
visible: MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web",
|
||||||
|
child: MIHAction(
|
||||||
icon: Padding(
|
icon: Padding(
|
||||||
padding: const EdgeInsets.all(10.0),
|
padding: const EdgeInsets.all(10.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@@ -266,6 +268,7 @@ class _RegisterState extends State<Register> {
|
|||||||
arguments: 0,
|
arguments: 0,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart';
|
import 'package:mzansi_innovation_hub/mih_components/mih_package_components/mih_icons.dart';
|
||||||
import 'package:mzansi_innovation_hub/mih_objects/arguments.dart';
|
import 'package:mzansi_innovation_hub/mih_objects/arguments.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@@ -287,8 +286,10 @@ class _SignInState extends State<SignIn> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
MIHAction getSecondaryActionButton() {
|
Widget getSecondaryActionButton() {
|
||||||
return MIHAction(
|
return Visibility(
|
||||||
|
visible: MzanziInnovationHub.of(context)!.theme.getPlatform() == "Web",
|
||||||
|
child: MIHAction(
|
||||||
icon: Padding(
|
icon: Padding(
|
||||||
padding: const EdgeInsets.all(10.0),
|
padding: const EdgeInsets.all(10.0),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
@@ -314,6 +315,7 @@ class _SignInState extends State<SignIn> {
|
|||||||
arguments: 0,
|
arguments: 0,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user