Bug fixes
This commit is contained in:
@@ -58,7 +58,7 @@ class BookmarkItem extends ConsumerWidget {
|
|||||||
child: ClipRRect(
|
child: ClipRRect(
|
||||||
borderRadius: tabletMode ? BorderRadius.circular(28) : BorderRadius.circular(0),
|
borderRadius: tabletMode ? BorderRadius.circular(28) : BorderRadius.circular(0),
|
||||||
child: Builder(
|
child: Builder(
|
||||||
builder: (context) {
|
builder: (ctx) {
|
||||||
return ContextMenuWidget(
|
return ContextMenuWidget(
|
||||||
menuProvider: (request) => Menu(
|
menuProvider: (request) => Menu(
|
||||||
children: [
|
children: [
|
||||||
@@ -93,7 +93,7 @@ class BookmarkItem extends ConsumerWidget {
|
|||||||
),
|
),
|
||||||
MenuAction(
|
MenuAction(
|
||||||
callback: () {
|
callback: () {
|
||||||
final box = context.findRenderObject() as RenderBox?;
|
final box = ctx.findRenderObject() as RenderBox?;
|
||||||
Future.delayed(_durationTime).then(
|
Future.delayed(_durationTime).then(
|
||||||
(value) => Share.share(
|
(value) => Share.share(
|
||||||
bookmark.url!,
|
bookmark.url!,
|
||||||
|
|||||||
@@ -25,7 +25,10 @@ class Onboarding extends ConsumerWidget {
|
|||||||
return Center(
|
return Center(
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: constraints.maxWidth > Sizes.tabletBreakpoint
|
constraints: constraints.maxWidth > Sizes.tabletBreakpoint
|
||||||
? const BoxConstraints(maxWidth: 500, maxHeight: 600)
|
? BoxConstraints(
|
||||||
|
maxWidth: 500,
|
||||||
|
maxHeight: constraints.maxHeight > 800 ? 800 : constraints.maxHeight - 100,
|
||||||
|
)
|
||||||
: const BoxConstraints.expand(),
|
: const BoxConstraints.expand(),
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: constraints.maxWidth > Sizes.tabletBreakpoint
|
decoration: constraints.maxWidth > Sizes.tabletBreakpoint
|
||||||
|
|||||||
@@ -108,10 +108,18 @@ class WebViewScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
PopupMenuButton(
|
Builder(
|
||||||
|
builder: (ctx) {
|
||||||
|
return PopupMenuButton(
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
onTap: () => Share.shareUri(Uri.parse(bookmark.url!)),
|
onTap: () {
|
||||||
|
final box = ctx.findRenderObject() as RenderBox?;
|
||||||
|
Share.share(
|
||||||
|
bookmark.url!,
|
||||||
|
sharePositionOrigin: box!.localToGlobal(Offset.zero) & box.size,
|
||||||
|
);
|
||||||
|
},
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
const Icon(Icons.share_rounded),
|
const Icon(Icons.share_rounded),
|
||||||
@@ -145,6 +153,8 @@ class WebViewScreen extends HookConsumerWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
);
|
||||||
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user