Skip to content
pubscout

is_ios_simulator

1.0.1, released 4 months ago by echoellet.dev

Checks whether the app is running in the iOS Simulator or on a physical device

WASM-readySingle maintainer
$ flutter pub add is_ios_simulator
Source repository

What it does

Checks whether the current application is running inside the iOS Simulator or on a physical device. Returns false on non-iOS platforms and uses conditional imports to avoid breaking web builds.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to detect if your app is running in the iOS simulator
  • You want to avoid heavy transitive dependencies introduced by larger device info packages

Skip it when

  • You need comprehensive device information beyond just iOS simulator detection

Strengths

  • Lightweight with minimal transitive dependencies
  • Safe for web builds via conditional imports
  • Simple and straightforward API

Weaknesses

  • Limited to a single specific check (iOS simulator vs physical device)

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

No special native configuration or setup required.

import 'package:is_ios_simulator/is_ios_simulator.dart';

final result = await isIosSimulator();
print(result);

Alternatives

Packages that do the same job and could replace is_ios_simulator.

  • device_info_plus

    If you need broader device info and system details across multiple platforms rather than just iOS simulator detection.