This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:prosappco/components/general_drawer_item.dart';
|
||||
import 'package:prosappco/screens/web/web_view_screen.dart';
|
||||
import 'package:setting_repository/setting_repository.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
class ConfigurationAboutScreen extends StatefulWidget {
|
||||
const ConfigurationAboutScreen({super.key});
|
||||
@@ -92,10 +93,18 @@ class _ConfigurationAboutScreenState extends State<ConfigurationAboutScreen> {
|
||||
},
|
||||
trailing: true,
|
||||
),
|
||||
GeneralDrawerItem(
|
||||
label: 'Versión de la aplicación',
|
||||
subtitle: settings?.version,
|
||||
),
|
||||
Platform.isIOS
|
||||
? GeneralDrawerItem(
|
||||
label: 'Versión de la aplicación',
|
||||
subtitle: settings?.versionIos,
|
||||
)
|
||||
: Container(),
|
||||
Platform.isAndroid
|
||||
? GeneralDrawerItem(
|
||||
label: 'Versión de la aplicación',
|
||||
subtitle: settings?.versionAndroid,
|
||||
)
|
||||
: Container(),
|
||||
],
|
||||
),
|
||||
);
|
||||
|
||||
+5
-4
@@ -134,8 +134,9 @@ class FirebaseProfessionalRepository {
|
||||
Future<String> uploadPdfCedula(String file, String userId) async {
|
||||
try {
|
||||
File pdfFile = File(file);
|
||||
Reference firebaseStoreRef =
|
||||
FirebaseStorage.instance.ref().child('$userId/PDF/${userId}_cedula');
|
||||
Reference firebaseStoreRef = FirebaseStorage.instance
|
||||
.ref()
|
||||
.child('$userId/PDF/${userId}_cedula.pdf');
|
||||
await firebaseStoreRef.putFile(pdfFile);
|
||||
String url = await firebaseStoreRef.getDownloadURL();
|
||||
return url;
|
||||
@@ -150,7 +151,7 @@ class FirebaseProfessionalRepository {
|
||||
File pdfFile = File(file);
|
||||
Reference firebaseStoreRef = FirebaseStorage.instance
|
||||
.ref()
|
||||
.child('$userId/PDF/${userId}_certificado');
|
||||
.child('$userId/PDF/${userId}_certificado.pdf');
|
||||
await firebaseStoreRef.putFile(pdfFile);
|
||||
String url = await firebaseStoreRef.getDownloadURL();
|
||||
return url;
|
||||
@@ -167,7 +168,7 @@ class FirebaseProfessionalRepository {
|
||||
for (String file in files) {
|
||||
File pdfFile = File(file);
|
||||
Reference firebaseStoreRef = FirebaseStorage.instance.ref().child(
|
||||
'$userId/PDF/${userId}_${DateTime.now().millisecondsSinceEpoch}_especializacion');
|
||||
'$userId/PDF/${userId}_${DateTime.now().millisecondsSinceEpoch}_especializacion.pdf');
|
||||
await firebaseStoreRef.putFile(pdfFile);
|
||||
String url = await firebaseStoreRef.getDownloadURL();
|
||||
urls.add(url);
|
||||
|
||||
@@ -4,7 +4,8 @@ class SettingEntity extends Equatable {
|
||||
final bool? tarifas;
|
||||
final bool? domicilios;
|
||||
final bool? google;
|
||||
final String? version;
|
||||
final String? versionIos;
|
||||
final String? versionAndroid;
|
||||
final String? horaNotificacion;
|
||||
final String? tituloSoporte;
|
||||
final String? parrafoSoporte;
|
||||
@@ -23,7 +24,8 @@ class SettingEntity extends Equatable {
|
||||
required this.tarifas,
|
||||
required this.domicilios,
|
||||
required this.google,
|
||||
required this.version,
|
||||
required this.versionIos,
|
||||
required this.versionAndroid,
|
||||
required this.horaNotificacion,
|
||||
required this.tituloSoporte,
|
||||
required this.parrafoSoporte,
|
||||
@@ -44,7 +46,8 @@ class SettingEntity extends Equatable {
|
||||
tarifas: doc['tarifas'] as bool?,
|
||||
domicilios: doc['domicilios'] as bool?,
|
||||
google: doc['google'] as bool?,
|
||||
version: doc['version'] as String?,
|
||||
versionIos: doc['version_ios'] as String?,
|
||||
versionAndroid: doc['version_android'] as String?,
|
||||
horaNotificacion: doc['hora_notificacion'] as String?,
|
||||
tituloSoporte: doc['titulo_soporte'] as String?,
|
||||
parrafoSoporte: doc['parrafo_soporte'] as String?,
|
||||
@@ -66,7 +69,8 @@ class SettingEntity extends Equatable {
|
||||
tarifas,
|
||||
domicilios,
|
||||
google,
|
||||
version,
|
||||
versionIos,
|
||||
versionAndroid,
|
||||
horaNotificacion,
|
||||
tituloSoporte,
|
||||
parrafoSoporte,
|
||||
@@ -88,7 +92,8 @@ class SettingEntity extends Equatable {
|
||||
tarifas: $tarifas
|
||||
domicilios: $domicilios
|
||||
google: $google
|
||||
version: $version
|
||||
versionIos: $versionIos
|
||||
versionAndroid: $versionAndroid
|
||||
horaNotificacion: $horaNotificacion
|
||||
tituloSoporte: $tituloSoporte
|
||||
parrafoSoporte: $parrafoSoporte
|
||||
|
||||
Reference in New Issue
Block a user