There is a global boolean kIsWeb which can tell you whether or not the app was compiled to run on the web. import ‘package:flutter/foundation. dart’ show kIsWeb; if (kIsWeb) { // running on the web! }
There is a global boolean kIsWeb which can tell you whether or not the app was compiled to run on the web. import ‘package:flutter/foundation. dart’ show kIsWeb; if (kIsWeb) { // running on the web! }