Skip to content
pubscout

ios_utsname_ext

2.3.0, released 3 years ago by stefandevo.dev

Extension method to translate iOS utsname machine codes into full product names.

WASM-readyRepository archived
$ flutter pub add ios_utsname_ext
Source repository

What it does

Provides an extension method on iOS utsname machine strings to translate device identifiers like 'iPhone7,1' into readable product names like 'iPhone 6 Plus'. It relies on a maintained list of iOS device identifiers.

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

Use it when

  • You are displaying iOS device info to users and want friendly product names instead of raw machine codes.
  • You are using the device_info package and need readable iOS model names.

Skip it when

  • You do not need to display or log iOS device model names.
  • You are building apps strictly for non-iOS platforms.

Strengths

  • Simple extension method API usage.
  • Regularly updated with new iOS device models.

Weaknesses

  • Limited scope dedicated solely to iOS device name translation.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0

not documented

import 'package:ios_utsname_ext/extension.dart';

print('Running on ${iosInfo.utsname.machine.iOSProductName}');

Alternatives

Packages that do the same job and could replace ios_utsname_ext.