Skip to content

Commit

Permalink
Merge pull request #783 from atsign-foundation/feat/onboarding_fixes_…
Browse files Browse the repository at this point in the history
…windows

fix: windows onboarding fixes
  • Loading branch information
sachins-geekyants authored Jan 10, 2024
2 parents 7b3d076 + 5e15e70 commit 169a89f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -537,11 +537,11 @@ class _AtOnboardingHomeScreenState extends State<AtOnboardingHomeScreen> {
Future<String?> _desktopKeyPicker() async {
try {
XFile? file = await openFile(
acceptedTypeGroups: const [
acceptedTypeGroups: [
// General file extensions
XTypeGroup(extensions: ['atKeys', 'atkeys']),
const XTypeGroup(extensions: ['atKeys', 'atkeys']),
// Apple specific UTIs
XTypeGroup(uniformTypeIdentifiers: ['com.atsign.atkeys']),
XTypeGroup(uniformTypeIdentifiers: Platform.isMacOS ? ['com.atsign.atkeys'] : null),
],
);
return file?.path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import 'package:at_onboarding_flutter/screen/at_onboarding_intro_screen.dart';
import 'package:at_onboarding_flutter/services/at_onboarding_config.dart';
import 'package:at_onboarding_flutter/services/onboarding_service.dart';
import 'package:at_onboarding_flutter/utils/at_onboarding_dimens.dart';
import 'package:at_onboarding_flutter/utils/at_onboarding_error_util.dart';
import 'package:at_onboarding_flutter/widgets/at_onboarding_button.dart';
import 'package:at_onboarding_flutter/widgets/at_onboarding_dialog.dart';
import 'package:at_sync_ui_flutter/at_sync_material.dart';
Expand Down Expand Up @@ -93,10 +94,11 @@ class _AtOnboardingStartScreenState extends State<AtOnboardingStartScreen> {
Navigator.pop(context, result);
} else {
if (!mounted) return;
var message = AtOnboardingErrorToString().getErrorMessage(e);
Navigator.pop(
context,
AtOnboardingResult.error(
message: "$e",
message: message,
),
);
}
Expand Down

0 comments on commit 169a89f

Please sign in to comment.