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