cupertino_native_better
2.11.0, released today by gunumdogdu.com
Native iOS and macOS Liquid Glass controls and widgets in Flutter with Cupertino fallbacks.
What it does
Brings native UIKit and SwiftUI views into Flutter—such as tab bars, buttons, menus, sliders, switches, alerts, sheets, and macOS window elements—with Liquid Glass styles on supported OS versions and Cupertino fallbacks elsewhere.
AI-written summary of version 2.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want authentic native iOS and macOS controls, animations, and Liquid Glass effects inside a Flutter app.
- You need platform-adaptive UI that uses native views on Apple platforms and standard Cupertino widgets on others.
Skip it when
- You require a completely custom design system that does not rely on native Apple aesthetics.
- You are building exclusively for non-Apple platforms where native controls are not supported.
Strengths
- Uses Apple's own native controls for authentic haptics, animations, and accessibility.
- Gracefully falls back to Cupertino widgets on older iOS versions, Android, and the web.
Weaknesses
- Requires proper registration of a global NavigatorObserver to prevent z-order and halo bleed issues.
- Platform-specific visual features (like Liquid Glass) require newer versions of iOS and macOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
Requires registering CNTabBarRouteObserver in navigatorObservers on your root navigator for proper modal and z-order coordination.
import 'package:cupertino_native_better/cupertino_native_better.dart';
import 'package:flutter/cupertino.dart';
void main() => runApp(
CupertinoApp(
navigatorObservers: [CNTabBarRouteObserver()],
home: CupertinoPageScaffold(
child: Center(
child: CNButton(
label: 'Get Started',
config: const CNButtonConfig(style: CNButtonStyle.prominentGlass),
onPressed: () {},
),
),
),
),
);Alternatives
Packages that do the same job and could replace cupertino_native_better.
- cupertino_icons
If you only need standard Cupertino icons rather than full native control bindings.
93Compare - cupertino_ui
If you prefer standard Flutter-drawn Cupertino widgets instead of native UIKit/SwiftUI views.
93Compare
Works with
Packages commonly used together with cupertino_native_better: ones it builds on, ones built on it, and its own family.