Skip to content
pubscout

indexed

0.0.8, released 4 years ago by physia.dev

Order items inside a Stack widget using a z-index approach

WASM-ready
$ flutter pub add indexed
Source repository

What it does

Provides an Indexed and Indexer widget that allows you to control the display order of items inside a Stack, similar to the CSS z-index property. Items can be wrapped in an Indexed widget or implement IndexedInterface.

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

Use it when

  • You need to change the stacking order of overlapping widgets inside a Stack dynamically or statically
  • You want an easy z-index style ordering system for Flutter UI elements

Skip it when

  • You are not using a Stack widget
  • Standard Stack children ordering is sufficient for your design

Strengths

  • Simplifies z-index style management for Stack widgets
  • Supports multiple ways of usage via Indexed widget or IndexedInterface implementation

Weaknesses

  • Very minimal documentation and features
  • Not recently updated beyond early Flutter 3 support

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Indexer(
    children: [
        Indexed(
          key: UniqueKey(),
          child: Positioned(
            child: Container()
          )
        ),
    ],
);

Alternatives

Packages that do the same job and could replace indexed.