Bug fixes
This commit is contained in:
@@ -57,7 +57,9 @@ class BookmarkItem extends ConsumerWidget {
|
||||
padding: tabletMode ? const EdgeInsets.symmetric(horizontal: 8) : const EdgeInsets.all(0),
|
||||
child: ClipRRect(
|
||||
borderRadius: tabletMode ? BorderRadius.circular(28) : BorderRadius.circular(0),
|
||||
child: ContextMenuWidget(
|
||||
child: Builder(
|
||||
builder: (context) {
|
||||
return ContextMenuWidget(
|
||||
menuProvider: (request) => Menu(
|
||||
children: [
|
||||
MenuAction(
|
||||
@@ -90,9 +92,15 @@ class BookmarkItem extends ConsumerWidget {
|
||||
image: MenuImage.icon(Icons.input_rounded),
|
||||
),
|
||||
MenuAction(
|
||||
callback: () => Future.delayed(_durationTime).then(
|
||||
(value) => Share.shareUri(Uri.parse(bookmark.url!)),
|
||||
callback: () {
|
||||
final box = context.findRenderObject() as RenderBox?;
|
||||
Future.delayed(_durationTime).then(
|
||||
(value) => Share.share(
|
||||
bookmark.url!,
|
||||
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
||||
),
|
||||
);
|
||||
},
|
||||
title: t.bookmarks.bookmarkOptions.shareThirdPartyApp,
|
||||
image: MenuImage.icon(Icons.output_rounded),
|
||||
),
|
||||
@@ -333,6 +341,8 @@ class BookmarkItem extends ConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -48,12 +48,12 @@ class WebViewScreen extends HookConsumerWidget {
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
bookmark.title != "" ? bookmark.title! : bookmark.websiteTitle!,
|
||||
bookmark.title ?? bookmark.websiteTitle ?? "Website",
|
||||
style: const TextStyle(fontSize: 14),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
bookmark.url!,
|
||||
bookmark.url ?? "",
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Theme.of(context).colorScheme.onSurfaceVariant,
|
||||
|
||||
@@ -75,9 +75,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,9 +99,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -119,9 +123,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,9 +145,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -157,9 +165,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,9 +189,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -197,9 +209,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -212,9 +226,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,9 +240,11 @@ class ApiClientService {
|
||||
return const ApiResponse(successful: true);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,9 +260,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,9 +286,11 @@ class ApiClientService {
|
||||
return const ApiResponse(successful: true);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -284,9 +306,11 @@ class ApiClientService {
|
||||
);
|
||||
} on DioException {
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (e, stackTrace) {
|
||||
} on FormatException catch (e, stackTrace) {
|
||||
Sentry.captureException(e, stackTrace: stackTrace);
|
||||
return const ApiResponse(successful: false);
|
||||
} catch (_) {
|
||||
return const ApiResponse(successful: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user