Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Lint fixes

Neeraj Gupta8c81a377c0dc
diff --git a/mobile/lib/ui/map/tile/layers.dart b/mobile/lib/ui/map/tile/layers.dart
index 2597dddea2..7c1a5a1846 100644
--- a/mobile/lib/ui/map/tile/layers.dart
+++ b/mobile/lib/ui/map/tile/layers.dart
@@ -102,6 +102,7 @@ class MapBoxTilesLayer extends StatelessWidget {
fallbackUrl: 'https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png',
subdomains: const ['a', 'b', 'c'],
backgroundColor: Colors.transparent,
+
userAgentPackageName: _userAgent,
tileProvider: CachedNetworkTileProvider(),
additionalOptions: const {
diff --git a/mobile/lib/ui/viewer/file/detail_page.dart b/mobile/lib/ui/viewer/file/detail_page.dart
index 3751e327f6..98ff163b14 100644
--- a/mobile/lib/ui/viewer/file/detail_page.dart
+++ b/mobile/lib/ui/viewer/file/detail_page.dart
@@ -65,7 +65,7 @@ class DetailPageConfiguration {
class DetailPage extends StatefulWidget {
final DetailPageConfiguration config;
- const DetailPage(this.config, {key}) : super(key: key);
+ const DetailPage(this.config, {super.key});
@override
State<DetailPage> createState() => _DetailPageState();
diff --git a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
index 54ff94ce6a..a4f5651004 100644
--- a/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
+++ b/mobile/lib/ui/viewer/file/video_widget_media_kit_new.dart
@@ -242,6 +242,8 @@ class _VideoWidget extends StatefulWidget {
this.controller,
this.playbackCallback, {
required this.isFromMemories,
+ // ignore: unused_element
+ this.onStreamChange,
});
@override
diff --git a/mobile/lib/ui/viewer/location/update_location_data_widget.dart b/mobile/lib/ui/viewer/location/update_location_data_widget.dart
index edafccd0e4..2584c8748d 100644
--- a/mobile/lib/ui/viewer/location/update_location_data_widget.dart
+++ b/mobile/lib/ui/viewer/location/update_location_data_widget.dart
@@ -49,8 +49,9 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
FlutterMap(
mapController: _mapController,
options: MapOptions(
- enableMultiFingerGestureRace: true,
- zoom: 3,
+ interactionOptions:
+ const InteractionOptions(enableMultiFingerGestureRace: true),
+ initialZoom: 3,
maxZoom: 18.0,
minZoom: 2.8,
onMapEvent: (p0) {
@@ -62,8 +63,8 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
},
onTap: (tapPosition, latlng) {
final zoom = selectedLocation.value == null
- ? _mapController.zoom + 2.0
- : _mapController.zoom;
+ ? _mapController.camera.zoom + 2.0
+ : _mapController.camera.zoom;
_mapController.move(latlng, zoom);
selectedLocation.value = latlng;
@@ -138,8 +139,8 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
icon: Icons.add,
onPressed: () {
_mapController.move(
- _mapController.center,
- _mapController.zoom + 1,
+ _mapController.camera.center,
+ _mapController.camera.zoom + 1,
);
},
heroTag: 'zoom-in',
@@ -149,8 +150,8 @@ class _UpdateLocationDataWidgetState extends State<UpdateLocationDataWidget> {
icon: Icons.remove,
onPressed: () {
_mapController.move(
- _mapController.center,
- _mapController.zoom - 1,
+ _mapController.camera.center,
+ _mapController.camera.zoom - 1,
);
},
heroTag: 'zoom-out',
diff --git a/mobile/plugins/ente_cast_none/lib/src/service.dart b/mobile/plugins/ente_cast_none/lib/src/service.dart
index c781889733..bcc6fb4e5a 100644
--- a/mobile/plugins/ente_cast_none/lib/src/service.dart
+++ b/mobile/plugins/ente_cast_none/lib/src/service.dart
@@ -17,19 +17,16 @@ class CastServiceImpl extends CastService {
@override
Future<List<(String, Object)>> searchDevices() {
- // TODO: implement searchDevices
throw UnimplementedError();
}
@override
Future<void> closeActiveCasts() {
- // TODO: implement closeActiveCasts
throw UnimplementedError();
}
@override
Map<String, String> getActiveSessions() {
- // TODO: implement getActiveSessions
throw UnimplementedError();
}
}
diff --git a/mobile/plugins/onnx_dart/pubspec.yaml b/mobile/plugins/onnx_dart/pubspec.yaml
index fe7dd8c484..8757519440 100644
--- a/mobile/plugins/onnx_dart/pubspec.yaml
+++ b/mobile/plugins/onnx_dart/pubspec.yaml
@@ -1,7 +1,7 @@
name: onnx_dart
description: "A new Flutter plugin project."
version: 0.0.1
-homepage: http://ente.io
+homepage: https://ente.io
environment:
sdk: '>=3.4.3 <4.0.0'