remove generic open tab snackbar
This commit is contained in:
@@ -84,8 +84,8 @@ Future<void> showSuggestNewTabMessage(
|
|||||||
}) async {
|
}) async {
|
||||||
final clipboardUrl = await tryGetUriFromClipboard();
|
final clipboardUrl = await tryGetUriFromClipboard();
|
||||||
|
|
||||||
final snackBar = (clipboardUrl != null)
|
if (clipboardUrl != null) {
|
||||||
? SnackBar(
|
final snackBar = SnackBar(
|
||||||
content: const Text('Want to open link from clipboard?'),
|
content: const Text('Want to open link from clipboard?'),
|
||||||
action: SnackBarAction(
|
action: SnackBarAction(
|
||||||
label: 'Open',
|
label: 'Open',
|
||||||
@@ -94,22 +94,13 @@ Future<void> showSuggestNewTabMessage(
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
duration: duration,
|
duration: duration,
|
||||||
)
|
|
||||||
: SnackBar(
|
|
||||||
content: const Text('Want to open a new tab?'),
|
|
||||||
action: SnackBarAction(
|
|
||||||
label: 'New Tab',
|
|
||||||
onPressed: () {
|
|
||||||
onAdd(null);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
duration: duration,
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (context.mounted) {
|
if (context.mounted) {
|
||||||
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
ScaffoldMessenger.of(context).showSnackBar(snackBar);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void showTabSwitchMessage(
|
void showTabSwitchMessage(
|
||||||
BuildContext context, {
|
BuildContext context, {
|
||||||
|
|||||||
Reference in New Issue
Block a user