Skip to content
pubscout

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.

WASM-readyUses material_ui
$ flutter pub add corextra
Source repository

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.

  • black_hole_flutter

    Flutter utility functions, extension methods, and custom widgets.

  • gtk

    GTK utilities for Flutter Linux applications, providing settings and application lifecycle helpers.

  • mime

    Utilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.

Works with

Packages commonly used together with corextra: ones it builds on, ones built on it, and its own family.