indexed
0.0.8, released 4 years ago by physia.dev
Order items inside a Stack widget using a z-index approach
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.
- group_list_view
A Flutter ListView that allows you to group list items and support headers.
50Compare - prompt_dialog
A JavaScript-like prompt dialog widget for Flutter applications.
50Compare - flutter_lazy_indexed_stack
An IndexedStack widget that loads children lazily only when needed.
57Compare - scroll_snap_list
A Flutter wrapper for ListView that snaps to items at the end of user-scroll.
50Compare