fix(block2): sharing sheet overflow + location button feedback/robustness
Reported: sheet overflowed 7.7px with the keyboard up, and 'use my location'
seemed to do nothing.
- Config sheet is now scrollable (SingleChildScrollView) — no keyboard overflow.
- 'Use my location' shows an inline spinner + inline error (the old snackbar was
hidden BEHIND the bottom sheet, so failures were invisible). Message is now
actionable ('check location is on and the permission is granted').
- Provider hardening: request permission first; on permanent denial open app
settings; if location services are off open location settings; time-limit the
fix and fall back to last-known position so it doesn't hang indoors.
Analyzer clean; market tests green.
This commit is contained in:
parent
7cba4f7fcf
commit
1a81db9bf0
9 changed files with 69 additions and 31 deletions
|
|
@ -1132,8 +1132,8 @@ class Translations$market$en {
|
|||
/// en: 'Use my approximate location'
|
||||
String get useLocation => 'Use my approximate location';
|
||||
|
||||
/// en: 'Couldn't get your location'
|
||||
String get locationFailed => 'Couldn\'t get your location';
|
||||
/// en: 'Couldn't get your location — check that location is on and the permission is granted'
|
||||
String get locationFailed => 'Couldn\'t get your location — check that location is on and the permission is granted';
|
||||
|
||||
/// en: 'Saved — we'll share these when you're connected'
|
||||
String get queued => 'Saved — we\'ll share these when you\'re connected';
|
||||
|
|
@ -1960,7 +1960,7 @@ extension on Translations {
|
|||
'market.sharedCount' => ({required Object n}) => 'Shared ${n} seeds nearby',
|
||||
'market.nothingToShare' => 'Mark some seeds to give, swap or sell first',
|
||||
'market.useLocation' => 'Use my approximate location',
|
||||
'market.locationFailed' => 'Couldn\'t get your location',
|
||||
'market.locationFailed' => 'Couldn\'t get your location — check that location is on and the permission is granted',
|
||||
'market.queued' => 'Saved — we\'ll share these when you\'re connected',
|
||||
'chat.title' => 'Chat',
|
||||
'chat.hint' => 'Write a message…',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue