feat(block2): 'use my location' — set the sharing area without typing a code
Makes the coarse area human, per feedback that a typed code is jargon. - CoarseLocationProvider interface + geolocator-backed impl (BSD-3): low accuracy only, returns null on any denial/error (degrades quietly). Behind an interface so it's fakeable and the plugin stays at the composition root. - Config sheet: a 'Use my approximate location' button (shown only when a provider is wired) fills the area from the device position, reduced to a 5-char geohash via commons_core's Geohash — a precise fix never leaves the device. 'Couldn't get your location' on failure. - Threaded via TaneApp(location); main wires GeolocatorCoarseLocation. - Platform: ACCESS_COARSE_LOCATION (Android) + NSLocationWhenInUseUsageDescription (iOS), both scoped to the coarse-area use. - i18n en/es/pt. Widget test fills the area from a fake location. 8 tests green.
This commit is contained in:
parent
6195bece4a
commit
bf0e770aae
15 changed files with 176 additions and 10 deletions
|
|
@ -622,6 +622,8 @@ class _Translations$market$es extends Translations$market$en {
|
|||
@override String get shareMine => 'Compartir mis semillas';
|
||||
@override String sharedCount({required Object n}) => 'Compartidas ${n} semillas';
|
||||
@override String get nothingToShare => 'Marca antes algunas semillas para regalar, cambiar o vender';
|
||||
@override String get useLocation => 'Usar mi ubicación aproximada';
|
||||
@override String get locationFailed => 'No se pudo obtener tu ubicación';
|
||||
}
|
||||
|
||||
// Path: intro.slides
|
||||
|
|
@ -1279,6 +1281,8 @@ extension on TranslationsEs {
|
|||
'market.shareMine' => 'Compartir mis semillas',
|
||||
'market.sharedCount' => ({required Object n}) => 'Compartidas ${n} semillas',
|
||||
'market.nothingToShare' => 'Marca antes algunas semillas para regalar, cambiar o vender',
|
||||
'market.useLocation' => 'Usar mi ubicación aproximada',
|
||||
'market.locationFailed' => 'No se pudo obtener tu ubicación',
|
||||
_ => null,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue