mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Migrate from dart:html to package:web
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// ignore: avoid_web_libraries_in_flutter
|
||||
import 'dart:html';
|
||||
import 'package:web/web.dart';
|
||||
|
||||
bool get pointerIsMouse => window.matchMedia('(pointer: fine)').matches;
|
||||
bool get pointerIsTouch => window.matchMedia('(pointer: coarse)').matches;
|
||||
|
||||
Reference in New Issue
Block a user