diff --git a/lib/Components/translation_tab.dart b/lib/Components/translation_tab.dart index 36eb37f..e89ad3c 100644 --- a/lib/Components/translation_tab.dart +++ b/lib/Components/translation_tab.dart @@ -64,8 +64,8 @@ getContent(List translations, int maxLines) { maxLines: maxLines, initialValue: translation.value, onChanged: (String value) { - print("onChanged value in tranbslationTAB"); - print(value); + //print("onChanged value in tranbslationTAB"); + //print(value); translation.value = value; }, cursorColor: kPrimaryColor, diff --git a/lib/Components/upload_online_resources_container.dart b/lib/Components/upload_online_resources_container.dart index 8d08529..a6aaf4f 100644 --- a/lib/Components/upload_online_resources_container.dart +++ b/lib/Components/upload_online_resources_container.dart @@ -28,7 +28,7 @@ class _UploadOnlineResourceContainerState extends State { if (result != null) { setState(() { ImageGeoPoint newImage = new ImageGeoPoint(imageResourceId: result.id, imageSource: result.type == ResourceType.imageUrl ? result.data : appContext.getContext().clientAPI.resourceApi.apiClient.basePath+"/api/Resource/"+ result.id); - print("REULT IMAGES = "); - print(newImage); + //print("REULT IMAGES = "); + //print(newImage); imagesGeo.add(newImage); - print(imagesGeo); + //print(imagesGeo); widget.onChanged(imagesGeo); }); } diff --git a/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart b/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart index 9472c20..96ef7fe 100644 --- a/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart +++ b/lib/Screens/Configurations/Section/SubSection/Menu/menu_config.dart @@ -114,8 +114,8 @@ class _MenuConfigState extends State { true, (SectionDTO newSubsection) { setState(() { - print("RECEIVED new swubssection"); - print(newSubsection); + //print("RECEIVED new swubssection"); + //print(newSubsection); menuDTO.sections.add(newSubsection); widget.onChanged(jsonEncode(menuDTO).toString()); }); diff --git a/lib/Screens/Configurations/Section/SubSection/Menu/showEditSubSection.dart b/lib/Screens/Configurations/Section/SubSection/Menu/showEditSubSection.dart index 3a79737..a81efc8 100644 --- a/lib/Screens/Configurations/Section/SubSection/Menu/showEditSubSection.dart +++ b/lib/Screens/Configurations/Section/SubSection/Menu/showEditSubSection.dart @@ -129,8 +129,8 @@ getSpecificData(SectionDTO sectionDTO, BuildContext context, AppContext appConte return MapConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent"); - print(data); + //print("Received info in parent"); + //print(data); sectionDTO.data = data; }, ); @@ -141,8 +141,8 @@ getSpecificData(SectionDTO sectionDTO, BuildContext context, AppContext appConte child: SliderConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent"); - print(data); + //print("Received info in parent"); + //print(data); sectionDTO.data = data; }, ), @@ -160,8 +160,8 @@ getSpecificData(SectionDTO sectionDTO, BuildContext context, AppContext appConte return MenuConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent"); - print(data); + //print("Received info in parent"); + //print(data); sectionDTO.data = data; }, ); diff --git a/lib/Screens/Configurations/Section/section_detail_screen.dart b/lib/Screens/Configurations/Section/section_detail_screen.dart index 37c0876..b308a74 100644 --- a/lib/Screens/Configurations/Section/section_detail_screen.dart +++ b/lib/Screens/Configurations/Section/section_detail_screen.dart @@ -181,20 +181,21 @@ class _SectionDetailScreenState extends State { maxLines: 1, isTitle: true, ), - MultiStringContainer( - label: "Description affichée:", - modalLabel: "Description", - color: kPrimaryColor, - initialValue: sectionDTO != null ? sectionDTO.description : [], - onGetResult: (value) { - if (sectionDTO.description != value) { - sectionDTO.description = value; - save(true, sectionDTO, appContext); - } - }, - maxLines: 2, - isTitle: true, - ), + if(sectionDTO.type != SectionType.article) + MultiStringContainer( + label: "Description affichée:", + modalLabel: "Description", + color: kPrimaryColor, + initialValue: sectionDTO != null ? sectionDTO.description : [], + onGetResult: (value) { + if (sectionDTO.description != value) { + sectionDTO.description = value; + save(true, sectionDTO, appContext); + } + }, + maxLines: 2, + isTitle: true, + ), ], ), Column( @@ -357,7 +358,7 @@ class _SectionDetailScreenState extends State { return MenuConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent"); + //print("Received info in parent"); //print(data); sectionDTO.data = data; }, @@ -366,7 +367,7 @@ class _SectionDetailScreenState extends State { return QuizzConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent - quizz"); + //print("Received info in parent - quizz"); //print(data); sectionDTO.data = data; }, @@ -375,7 +376,7 @@ class _SectionDetailScreenState extends State { return ArticleConfig( initialValue: sectionDTO.data, onChanged: (String data) { - print("Received info in parent - article"); + //print("Received info in parent - article"); //print(data); sectionDTO.data = data; save(false, sectionDTO, appContext); diff --git a/lib/Screens/Configurations/configuration_detail_screen.dart b/lib/Screens/Configurations/configuration_detail_screen.dart index 3dc909e..9eac283 100644 --- a/lib/Screens/Configurations/configuration_detail_screen.dart +++ b/lib/Screens/Configurations/configuration_detail_screen.dart @@ -177,7 +177,7 @@ class _ConfigurationDetailScreenState extends State { onChanged: (value) { var tempOutput = new List.from(value); configurationDTO.languages = tempOutput; - print(configurationDTO.languages); + //print(configurationDTO.languages); }, ), CheckInputContainer( diff --git a/lib/Screens/Configurations/configurations_screen.dart b/lib/Screens/Configurations/configurations_screen.dart index 6e4c508..e4bc25c 100644 --- a/lib/Screens/Configurations/configurations_screen.dart +++ b/lib/Screens/Configurations/configurations_screen.dart @@ -135,7 +135,7 @@ class _ConfigurationsScreenState extends State { Future> getConfigurations(dynamic appContext) async { List configurations = await appContext.getContext().clientAPI.configurationApi.configurationGet(); - print("number of configurations " + configurations.length.toString()); + //print("number of configurations " + configurations.length.toString()); configurations.forEach((element) { //print(element); }); diff --git a/lib/Screens/Devices/change_device_info_modal.dart b/lib/Screens/Devices/change_device_info_modal.dart index 8698c4a..3dfe426 100644 --- a/lib/Screens/Devices/change_device_info_modal.dart +++ b/lib/Screens/Devices/change_device_info_modal.dart @@ -145,9 +145,9 @@ getConfigurationsElement(DeviceDTO inputDevice, data, Function onGetResult) { Future> getConfigurations(dynamic appContext) async { List configurations = await appContext.getContext().clientAPI.configurationApi.configurationGet(); - print("number of configurations " + configurations.length.toString()); + //print("number of configurations " + configurations.length.toString()); configurations.forEach((element) { - print(element); + //print(element); }); return configurations; } diff --git a/lib/Screens/Devices/device_element.dart b/lib/Screens/Devices/device_element.dart index 755d096..c0d6b9c 100644 --- a/lib/Screens/Devices/device_element.dart +++ b/lib/Screens/Devices/device_element.dart @@ -99,8 +99,8 @@ class _DeviceElementState extends State { (DeviceDTO outputDevice) { // For refresh setState(() { - print("output"); - print(outputDevice); + //print("output"); + //print(outputDevice); deviceDTO = outputDevice; // Update device main info updateMainInfos(deviceDTO, appContext); @@ -120,9 +120,9 @@ class _DeviceElementState extends State { Future updateMainInfos(DeviceDTO deviceToUpdate, dynamic appContext) async { ManagerAppContext managerAppContext = appContext.getContext(); - print(deviceToUpdate); + //print(deviceToUpdate); DeviceDTO device = await managerAppContext.clientAPI.deviceApi.deviceUpdateMainInfos(deviceToUpdate); - print(device); + //print(device); return device; } diff --git a/lib/Screens/Devices/devices_screen.dart b/lib/Screens/Devices/devices_screen.dart index 1541a7f..6e4679d 100644 --- a/lib/Screens/Devices/devices_screen.dart +++ b/lib/Screens/Devices/devices_screen.dart @@ -224,7 +224,7 @@ boxDecoration() { Future> getDevices(dynamic appContext) async { List devices = await appContext.getContext().clientAPI.deviceApi.deviceGet(); - print("number of devices " + devices.length.toString()); + //print("number of devices " + devices.length.toString()); devices.forEach((element) { //print(element); }); diff --git a/lib/Screens/login_screen.dart b/lib/Screens/login_screen.dart index af58d0e..afa6363 100644 --- a/lib/Screens/login_screen.dart +++ b/lib/Screens/login_screen.dart @@ -35,7 +35,7 @@ class _LoginScreenState extends State { bool isRememberMe = false; void authenticateTRY(dynamic appContext) async { - print("try auth.. "); + //print("try auth.. "); /*this.host = "http://localhost:5000"; this.email = "test@email.be"; @@ -50,8 +50,8 @@ class _LoginScreenState extends State { setState(() { isLoading = true; }); - print(email); - print(password); + /*print(email); + print(password);*/ LoginDTO loginDTO = new LoginDTO(email: email, password: password); TokenDTO token = await clientAPI.authenticationApi.authenticationAuthenticateWithJson(loginDTO); @@ -75,7 +75,7 @@ class _LoginScreenState extends State { managerAppContext.email = email; managerAppContext.token = token; managerAppContext.clientAPI = clientAPI; - print(managerAppContext); + //print(managerAppContext); appContext.setContext(managerAppContext); @@ -94,8 +94,8 @@ class _LoginScreenState extends State { ); } catch (e) { - print("error auth"); - print(e); + //print("error auth"); + //print(e); showNotification(Colors.orange, kWhite, 'Un problème est survenu lors de la connexion', context, null); setState(() { diff --git a/lib/main.dart b/lib/main.dart index dd8cbe9..5f4f1c7 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -73,7 +73,7 @@ class _MyAppState extends State { Future loadJsonSessionFile() async { Session session = await FileHelper().readSession(); - print(session); + //print(session); return session; }