EmptyState (widgets/empty_state.dart)

flutterclaw · lib/ui/widgets/empty_state.dart · dart · MIT
ui, tag:embed-classified

Module exposing: EmptyState

// Source: https://github.com/flutterclaw/flutterclaw | License: MIT | Copyright 2026 Franco Rapetti
// Provided via justclaw.it.com; keep this notice with the code.
import 'package:flutter/material.dart';
import 'package:flutter_animate/flutter_animate.dart';
import 'package:flutterclaw/ui/theme/tokens.dart';

/// A standardised empty state widget with icon, title, subtitle, and optional actions.
///
/// Use [EmptyState.loading] to show a shimmer placeholder while content loads.
class EmptyState extends StatelessWidget {
  const EmptyState({
    super.key,
    required this.icon,
    required this.title,
    this.subtitle,
    this.actionLabel,
    this.onAction,
    this.secondaryActionLabel,
    this.onSecondaryAction,
  }) : _shimmer = false;

  const EmptyState._shimmer({super.key})
 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key