Remove description for detail screen for article + remove all print..

This commit is contained in:
Fransolet Thomas 2022-09-09 15:33:54 +02:00
parent e64977f95e
commit 7c594bc82d
14 changed files with 51 additions and 50 deletions

View File

@ -64,8 +64,8 @@ getContent(List<TranslationDTO> 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,

View File

@ -28,7 +28,7 @@ class _UploadOnlineResourceContainerState extends State<UploadOnlineResourceCont
@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size;
print(size.width);
//print(size.width);
return displayElement(size);
}
@ -94,7 +94,7 @@ class _UploadOnlineResourceContainerState extends State<UploadOnlineResourceCont
hintText: widget.resourceDTO.type == ResourceType.imageUrl ? "Url de l'image" : "Url de la vidéo",
icon: widget.resourceDTO.type == ResourceType.imageUrl ? Icons.image : Icons.ondemand_video, // TODO: TBD
onChanged: (String text) {
print("onchanged url");
//print("onchanged url");
widget.resourceDTO.data = text;
widget.onChanged(widget.resourceDTO);
},
@ -104,7 +104,7 @@ class _UploadOnlineResourceContainerState extends State<UploadOnlineResourceCont
),
InkWell(
onTap: () {
print("refresh preview");
//print("refresh preview");
setState(() {
urlResourceToShow = widget.resourceDTO.data;
});

View File

@ -86,7 +86,7 @@ class FileHelper {
if (e.toString().contains("cannot find the file")) {
final path = await _localPath;
new File('$path/session.json').createSync(recursive: true);
print("file created");
//print("file created");
await writeSession(new Session(rememberMe: false));
}
// If encountering an error, return 0

View File

@ -98,10 +98,10 @@ class _GeoPointImageListState extends State<GeoPointImageList> {
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);
});
}

View File

@ -114,8 +114,8 @@ class _MenuConfigState extends State<MenuConfig> {
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());
});

View File

@ -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;
},
);

View File

@ -181,6 +181,7 @@ class _SectionDetailScreenState extends State<SectionDetailScreen> {
maxLines: 1,
isTitle: true,
),
if(sectionDTO.type != SectionType.article)
MultiStringContainer(
label: "Description affichée:",
modalLabel: "Description",
@ -357,7 +358,7 @@ class _SectionDetailScreenState extends State<SectionDetailScreen> {
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<SectionDetailScreen> {
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<SectionDetailScreen> {
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);

View File

@ -177,7 +177,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
onChanged: (value) {
var tempOutput = new List<String>.from(value);
configurationDTO.languages = tempOutput;
print(configurationDTO.languages);
//print(configurationDTO.languages);
},
),
CheckInputContainer(

View File

@ -135,7 +135,7 @@ class _ConfigurationsScreenState extends State<ConfigurationsScreen> {
Future<List<ConfigurationDTO>> getConfigurations(dynamic appContext) async {
List<ConfigurationDTO> 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);
});

View File

@ -145,9 +145,9 @@ getConfigurationsElement(DeviceDTO inputDevice, data, Function onGetResult) {
Future<List<ConfigurationDTO>> getConfigurations(dynamic appContext) async {
List<ConfigurationDTO> 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;
}

View File

@ -99,8 +99,8 @@ class _DeviceElementState extends State<DeviceElement> {
(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<DeviceElement> {
Future<DeviceDTO> 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;
}

View File

@ -224,7 +224,7 @@ boxDecoration() {
Future<List<DeviceDTO>> getDevices(dynamic appContext) async {
List<DeviceDTO> 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);
});

View File

@ -35,7 +35,7 @@ class _LoginScreenState extends State<LoginScreen> {
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<LoginScreen> {
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<LoginScreen> {
managerAppContext.email = email;
managerAppContext.token = token;
managerAppContext.clientAPI = clientAPI;
print(managerAppContext);
//print(managerAppContext);
appContext.setContext(managerAppContext);
@ -94,8 +94,8 @@ class _LoginScreenState extends State<LoginScreen> {
);
}
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(() {

View File

@ -73,7 +73,7 @@ class _MyAppState extends State<MyApp> {
Future<Session> loadJsonSessionFile() async {
Session session = await FileHelper().readSession();
print(session);
//print(session);
return session;
}