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