PACKET v1.0.0 - Initial release
App móvil Flutter para capturar contenido multimedia, etiquetarlo con hashes y enviarlo a backends configurables. Features: - Captura de fotos, audio, video y archivos - Sistema de etiquetas con bibliotecas externas (HST) - Packs de etiquetas predefinidos - Cola de reintentos (hasta 20 contenedores) - Soporte GPS - Hash SHA-256 auto-generado por contenedor - Persistencia SQLite local - Múltiples destinos configurables Stack: Flutter 3.38.5, flutter_bloc, sqflite, dio 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
16
lib/domain/entities/gps_location.dart
Normal file
16
lib/domain/entities/gps_location.dart
Normal file
@@ -0,0 +1,16 @@
|
||||
class GpsLocation {
|
||||
final double lat;
|
||||
final double long;
|
||||
|
||||
GpsLocation({required this.lat, required this.long});
|
||||
|
||||
Map<String, dynamic> toJson() => {'lat': lat, 'long': long};
|
||||
|
||||
factory GpsLocation.fromJson(Map<String, dynamic> json) => GpsLocation(
|
||||
lat: (json['lat'] as num).toDouble(),
|
||||
long: (json['long'] as num).toDouble(),
|
||||
);
|
||||
|
||||
@override
|
||||
String toString() => '${lat.toStringAsFixed(4)}, ${long.toStringAsFixed(4)}';
|
||||
}
|
||||
Reference in New Issue
Block a user