Udpate layout, remove buttons if not tablet modd
This commit is contained in:
parent
d79c4882fc
commit
ccfe283d67
@ -205,6 +205,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if(configurationDTO.isTablet!)
|
||||||
CheckInputContainer(
|
CheckInputContainer(
|
||||||
icon: Icons.image,
|
icon: Icons.image,
|
||||||
label: "Fond pour les images des sections :",
|
label: "Fond pour les images des sections :",
|
||||||
@ -258,6 +259,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
|
|||||||
PDFHelper.downloadPDF(managerAppContext, sections!);
|
PDFHelper.downloadPDF(managerAppContext, sections!);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if(configurationDTO.isTablet!)
|
||||||
CheckInputContainer(
|
CheckInputContainer(
|
||||||
icon: Icons.date_range,
|
icon: Icons.date_range,
|
||||||
label: "Date :",
|
label: "Date :",
|
||||||
@ -267,6 +269,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
|
|||||||
configurationDTO.isDate = value;
|
configurationDTO.isDate = value;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if(configurationDTO.isTablet!)
|
||||||
CheckInputContainer(
|
CheckInputContainer(
|
||||||
icon: Icons.watch_later_outlined,
|
icon: Icons.watch_later_outlined,
|
||||||
label: "Heure :",
|
label: "Heure :",
|
||||||
@ -334,6 +337,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
if(configurationDTO.isTablet!)
|
||||||
Container(
|
Container(
|
||||||
height: 100,
|
height: 100,
|
||||||
child: NumberInputContainer(
|
child: NumberInputContainer(
|
||||||
@ -351,6 +355,7 @@ class _ConfigurationDetailScreenState extends State<ConfigurationDetailScreen> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
if(configurationDTO.isTablet!)
|
||||||
Container(
|
Container(
|
||||||
height: 100,
|
height: 100,
|
||||||
child: NumberInputContainer(
|
child: NumberInputContainer(
|
||||||
|
|||||||
@ -147,6 +147,7 @@ void create(ConfigurationDTO configurationDTO, AppContext appContext, context) a
|
|||||||
configurationDTO.isOffline = false;
|
configurationDTO.isOffline = false;
|
||||||
configurationDTO.isDate = false;
|
configurationDTO.isDate = false;
|
||||||
configurationDTO.isHour = false;
|
configurationDTO.isHour = false;
|
||||||
|
configurationDTO.isSectionImageBackground = false;
|
||||||
configurationDTO.isWeather = false;
|
configurationDTO.isWeather = false;
|
||||||
configurationDTO.instanceId = (appContext.getContext() as ManagerAppContext).instanceId;
|
configurationDTO.instanceId = (appContext.getContext() as ManagerAppContext).instanceId;
|
||||||
await (appContext.getContext() as ManagerAppContext).clientAPI!.configurationApi!.configurationCreate(configurationDTO);
|
await (appContext.getContext() as ManagerAppContext).clientAPI!.configurationApi!.configurationCreate(configurationDTO);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user