cupertino_ui
1.1.7, released 4 days ago by flutter.dev
Official Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.
What it does
Provides a complete suite of iOS- and macOS-style visual components, motion, typography, color systems, and theming tools for Flutter applications. It was decoupled from the core Flutter framework into a standalone package.
AI-written summary of version 1.1.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building an iOS- or macOS-styled application or experience in Flutter
- Migrating existing code from legacy flutter/cupertino.dart to the standalone package
Skip it when
- Building an application exclusively using Material Design
- Needing platform-agnostic or cross-platform custom UI kits
Strengths
- Official Flutter implementation of Apple's Human Interface Guidelines
- Complete suite of visual components, navigation, inputs, pickers, and dialogs
- Includes compatibility bridging for legacy dependencies
Weaknesses
- Requires migration steps if coming from legacy framework-integrated cupertino widgets
- Limited to Cupertino/Apple design aesthetics
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Run flutter pub add cupertino_ui and use dart fix to migrate imports.
import 'package:cupertino_ui/cupertino_ui.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const CupertinoApp(
home: CupertinoPageScaffold(
navigationBar: CupertinoNavigationBar(
middle: Text('Home'),
),
child: Center(
child: Text('Hello Cupertino'),
),
),
);
}
}Alternatives
Packages that do the same job and could replace cupertino_ui.
- shad
A Flutter port of shadcn/ui with 40+ components and no Material dependency.
83Compare - fluttersdk_wind
Utility‑first Tailwind‑style styling for Flutter using className strings.
85Compare - coconut_design_system
Reusable UI component library for Flutter with theme-aware components and built-in animations.
79Compare - optimus
A design system providing reusable UI components for Flutter mobile and web.
74Compare
Works with
Packages commonly used together with cupertino_ui: ones it builds on, ones built on it, and its own family.
- intlcupertino_ui depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- cupertino_iconsSame familyAsset package providing Cupertino icon font for Flutter
- go_routerBuilt on cupertino_uiDeclarative routing package for Flutter based on Navigation 2 supporting deep links and URL-based navigation.
- material_uiBuilt on cupertino_uiOfficial Flutter Material UI library implementing Google’s Material Design system.
- chewieBuilt on cupertino_uiVideo player widget with Material/Cupertino controls
- dropdown_button2Built on cupertino_uiCustomizable Flutter dropdown button with advanced styling and multi-select support
- pinputBuilt on cupertino_uiCustomizable animated PIN and OTP code input widget with autofill support.
- accessibility_toolsBuilt on cupertino_uiCheckers and tools to verify accessibility and test app behavior during development.