Skip to content

Commit 0c223b3

Browse files
committed
fix android SAF SWB
1 parent dc1cca5 commit 0c223b3

4 files changed

Lines changed: 16 additions & 15 deletions

File tree

lib/pages/settings_views/global_settings_view/stack_backup_views/auto_backup_view.dart

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
101101
child: Text(
102102
"Back",
103103
style: STextStyles.button(context).copyWith(
104-
color:
105-
Theme.of(context).extension<StackColors>()!.accentColorDark,
104+
color: Theme.of(
105+
context,
106+
).extension<StackColors>()!.accentColorDark,
106107
),
107108
),
108109
onPressed: () {
@@ -155,8 +156,9 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
155156
child: Text(
156157
"Back",
157158
style: STextStyles.button(context).copyWith(
158-
color:
159-
Theme.of(context).extension<StackColors>()!.accentColorDark,
159+
color: Theme.of(
160+
context,
161+
).extension<StackColors>()!.accentColorDark,
160162
),
161163
),
162164
onPressed: () {
@@ -313,14 +315,13 @@ class _AutoBackupViewState extends ConsumerState<AutoBackupView> {
313315
TextSpan(
314316
text: "stackwallet.com.",
315317
style: STextStyles.richLink(context),
316-
recognizer:
317-
TapGestureRecognizer()
318-
..onTap = () {
319-
launchUrl(
320-
Uri.parse("https://stackwallet.com"),
321-
mode: LaunchMode.externalApplication,
322-
);
323-
},
318+
recognizer: TapGestureRecognizer()
319+
..onTap = () {
320+
launchUrl(
321+
Uri.parse("https://stackwallet.com"),
322+
mode: LaunchMode.externalApplication,
323+
);
324+
},
324325
),
325326
],
326327
),

lib/pages/settings_views/global_settings_view/stack_backup_views/create_auto_backup_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class _EnableAutoBackupViewState extends ConsumerState<CreateAutoBackupView> {
261261
await stackFileSystem.prepareStorage();
262262
if (mounted) {
263263
final filePath = await stackFileSystem
264-
.openFile();
264+
.pickDir();
265265

266266
if (mounted) {
267267
setState(() {

lib/pages/settings_views/global_settings_view/stack_backup_views/create_backup_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class _RestoreFromFileViewState extends ConsumerState<CreateBackupView> {
310310
await stackFileSystem.prepareStorage();
311311
if (mounted) {
312312
final filePath = await stackFileSystem
313-
.openFile();
313+
.pickDir();
314314

315315
if (mounted) {
316316
setState(() {

lib/pages/settings_views/global_settings_view/stack_backup_views/edit_auto_backup_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class _EditAutoBackupViewState extends ConsumerState<EditAutoBackupView> {
302302
try {
303303
await stackFileSystem.prepareStorage();
304304
if (mounted) {
305-
final filePath = await stackFileSystem.openFile();
305+
final filePath = await stackFileSystem.pickDir();
306306

307307
if (mounted) {
308308
setState(() {

0 commit comments

Comments
 (0)