How do I know if my phone is on web or Flutter?

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! }

Sizin İçin Seçtik  What will equalsIgnoreCase do while compare two strings?

Leave a Reply

Your email address will not be published. Required fields are marked *