remove screenshot code
This commit is contained in:
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:patient_manager/mih_env/env.dart';
|
import 'package:patient_manager/mih_env/env.dart';
|
||||||
import 'package:patient_manager/mih_router/routeGenerator.dart';
|
import 'package:patient_manager/mih_router/routeGenerator.dart';
|
||||||
import 'package:patient_manager/mih_theme/mih_theme.dart';
|
import 'package:patient_manager/mih_theme/mih_theme.dart';
|
||||||
import 'package:no_screenshot/no_screenshot.dart';
|
|
||||||
//import 'package:fpjs_pro_plugin/fpjs_pro_plugin.dart';
|
//import 'package:fpjs_pro_plugin/fpjs_pro_plugin.dart';
|
||||||
|
|
||||||
class MzanziInnovationHub extends StatefulWidget {
|
class MzanziInnovationHub extends StatefulWidget {
|
||||||
@@ -22,7 +21,7 @@ class MzanziInnovationHub extends StatefulWidget {
|
|||||||
class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
||||||
late ThemeMode _themeMode;
|
late ThemeMode _themeMode;
|
||||||
late MyTheme theme;
|
late MyTheme theme;
|
||||||
final noscreenshot = NoScreenshot.instance;
|
// final noscreenshot = NoScreenshot.instance;
|
||||||
Color getPrimany() {
|
Color getPrimany() {
|
||||||
return theme.primaryColor();
|
return theme.primaryColor();
|
||||||
}
|
}
|
||||||
@@ -79,9 +78,9 @@ class _MzanziInnovationHubState extends State<MzanziInnovationHub> {
|
|||||||
_themeMode = ThemeMode.dark;
|
_themeMode = ThemeMode.dark;
|
||||||
theme = MyTheme();
|
theme = MyTheme();
|
||||||
theme.platform = Theme.of(context).platform;
|
theme.platform = Theme.of(context).platform;
|
||||||
if (theme.getPlatform() == "Android") {
|
// if (theme.getPlatform() == "Android") {
|
||||||
noscreenshot.screenshotOff();
|
// noscreenshot.screenshotOff();
|
||||||
}
|
// }
|
||||||
theme.mode = "Dark";
|
theme.mode = "Dark";
|
||||||
super.initState();
|
super.initState();
|
||||||
//doInit();
|
//doInit();
|
||||||
|
|||||||
Reference in New Issue
Block a user