Add unit of raidus in dialog used to enter custom radius

This commit is contained in:
ashilkn 2023-04-28 15:20:52 +05:30
parent c7fbb550fc
commit 27abbbcae2
3 changed files with 4 additions and 2 deletions

View file

@ -1399,7 +1399,8 @@ class FilesDB {
// user and upload time is greater than 20 April 2023 epoch time and less than
// 15 May 2023 epoch time
Future<List<String>> getFilesWithLocationUploadedBtw20AprTo15May2023(
int ownerID) async {
int ownerID,
) async {
final db = await database;
final result = await db.query(
filesTable,

View file

@ -15,7 +15,6 @@ import 'package:photos/models/search/album_search_result.dart';
import 'package:photos/models/search/generic_search_result.dart';
import 'package:photos/models/search/search_result.dart';
import 'package:photos/services/collections_service.dart';
import "package:photos/services/feature_flag_service.dart";
import "package:photos/services/location_service.dart";
import "package:photos/states/location_screen_state.dart";
import "package:photos/ui/viewer/location/location_screen.dart";

View file

@ -196,6 +196,8 @@ class _RadiusPickerWidgetState extends State<RadiusPickerWidget> {
submitButtonLabel: "Done",
textInputFormatter: [NumberWithDecimalInputFormatter(maxValue: 10000)],
textInputType: const TextInputType.numberWithOptions(decimal: true),
message: "km",
alignMessage: Alignment.centerRight,
);
if (result is Exception) {
await showGenericErrorDialog(context: context);