Skip to content
pubscout

uiblock

2.0.3, released 3 years ago by hey24sheep.com

Easily block or unblock the UI with loading states in Flutter apps.

WASM-ready
$ flutter pub add uiblock
Source repository

What it does

Provides an easy way to block and unblock user interaction and display loading overlays or async builders in Flutter apps. Can be used imperatively via static methods or declaratively as a widget.

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

Use it when

  • You want to prevent user navigation and interaction during asynchronous operations or loading.
  • You need a simple global loading overlay with customizable widgets and text.

Skip it when

  • You require complex state management solutions.
  • You only need progress indicators inside specific localized layout areas without blocking the screen.

Strengths

  • Simple one-line API for blocking and unblocking UI globally.
  • Supports custom loaders, text widgets, and transitions.
  • Can also be used as a widget with future-based states.

Weaknesses

  • Relies on overlay/modal barriers which might interfere with certain navigation stacks if misused.
  • Limited to basic UI blocking and loading display.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
UIBlock.block(context);
// Perform async task...
UIBlock.unblock(context);

Alternatives

Packages that do the same job and could replace uiblock.