corextra
1.3.3, released 5 days ago by an unverified publisher
Dart extensions, utilities, form validators, responsive helpers, API models, and an in-app DevTools panel.
What it does
Provides a comprehensive set of Dart and Flutter utilities including null-safe checks, type conversion extensions, form validators, responsive layout helpers, an API json model mixin without code generation, and an in-app DevTools overlay for inspecting network requests and logs.
AI-written summary of version 1.3.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want common extensions and utilities without importing multiple small packages.
- You need an easy way to define JSON API models with zero code generation.
- You want a lightweight in-app DevTools panel to inspect network traffic and logs on device.
Skip it when
- You need strictly typed code-generated models via build_runner like freezed or json_serializable.
- You only need a single isolated helper function and want to avoid adding a large dependency.
Strengths
- Includes a wide variety of helpful utilities in a single package (extensions, validators, responsive helpers, devtools).
- API models mixin parses JSON safely with zero code generation requirements.
- In-app DevTools panel works seamlessly on device with search and filtering.
Weaknesses
- A single package containing many unrelated utilities may increase scope if you only need a small portion.
- Relies on mixins and runtime parsing for models rather than compile-time generated code.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 9
Simply add the dependency and optionally attach the DevTools overlay and interceptor to your MaterialApp and Dio instances.
class UserModel with CorextraJsonModel {
UserModel.fromJson(this.json);
@override
final Map<String, dynamic> json;
int? get id => read('id');
String get name => read('name') ?? '';
}Alternatives
Packages that do the same job and could replace corextra.
- extension_discovery
Convention and utilities for discovering package extensions via config.yaml files.
86Compare - black_hole_flutter
Flutter utility functions, extension methods, and custom widgets.
83Compare - gtk
GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.
76Compare - mime
Utilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.
92Compare
Works with
Packages commonly used together with corextra: ones it builds on, ones built on it, and its own family.
- webcorextra depends on itLightweight bindings for browser APIs via JS interop
- intlcorextra depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- package_info_pluscorextra depends on itFlutter plugin to query app package info like version, build number and installer store.
- diocorextra depends on itA powerful HTTP networking package for Dart and Flutter with interceptors and request cancellation.
- share_pluscorextra depends on itShare text, files, or URIs via native share dialogs on mobile, web, and desktop.
- device_info_pluscorextra depends on itProvides detailed information about the current device, make, model, and OS version.
- material_uicorextra depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- cupertino_uicorextra depends on itOfficial Flutter Cupertino design library implementing Apple HIG iOS and macOS user interfaces.