web_multiple_tab_detector 0.2.0 web_multiple_tab_detector: ^0.2.0 copied to clipboard
This package makes it possible to detect how many browser tabs in the webbrowser your flutter app is currently running in.
import 'package:web_multiple_tab_detector/web_multiple_tab_detector.dart';
void main() async {
WebMultipleTabDetector.register();
if (await WebMultipleTabDetector.isSingleTab()) {
// only one open tab allowed!
} else {
// laucnh app normally
}
}