Answers for "flutter find if is web"

1

flutter kisweb

import 'package:flutter/foundation.dart' show kIsWeb;

if (kIsWeb) {
  // running on the web!
} else {
  // NOT running on the web! You can check for additional platforms here.
}
Posted by: Guest on October-23-2020

Browse Popular Code Answers by Language