import 'package:flutter/foundation.dart'; /// Browsers use Material consistently, regardless of their host OS. bool prefersCupertino({bool web = kIsWeb, TargetPlatform? platform}) { final target = platform ?? defaultTargetPlatform; return !web && (target == TargetPlatform.iOS || target == TargetPlatform.macOS); }