Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 441 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 441 Bytes

WrapIf lets you decide to wrap a child with a widget or not with a condition.

Features

  • bool condition
  • Widget Function(Widget) parentBuilder
  • Widget child

Getting started

import 'package:wrap_if/wrap_if.dart';

Usage

    WrapIf(
      condition: true,
      parentBuilder: (child) {
        return Center(
          child: child,
        );
      },
      child: const Text("Hello WrapIf"),
    );