Skip to content
pubscout

kartal

5.0.0, released 3 months ago by vb10.dev

Collection of Dart and Flutter extensions for context, primitive variables, and common utilities.

WASM-ready
$ flutter pub add kartal
Source repository

What it does

Kartal provides 16 type extensions and built-in utilities accessible via a clean .ext syntax. It covers BuildContext helpers, string manipulation, responsive sizing, form validations, device information, and navigation.

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

Use it when

  • You want a single utility package to handle responsive sizing, padding, and screen breakpoints.
  • You need convenient extension methods on primitive types like String, int, DateTime, and BuildContext.

Skip it when

  • You prefer keeping your extension methods minimal and write your own to avoid bringing in a large external dependency.

Strengths

  • Extensive collection of type extensions for primitives, futures, lists, files, colors, and more.
  • Built-in responsive sizing, padding, and device screen breakpoints.
  • Cross-platform support including Android, iOS, Web, macOS, Windows, and Linux.

Weaknesses

  • Brings in multiple dependencies like device_info_plus, dio, share_plus, and url_launcher which may be unnecessary if you only need a small subset of features.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
12
Container(
  padding: context.padding.low,
  height: context.sized.dynamicHeight(0.1),
  child: Text(
    'Hello',
    style: context.general.textTheme.titleMedium,
  ),
)

Alternatives

Packages that do the same job and could replace kartal.

Works with

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