unwrapper 0.0.1
unwrapper: ^0.0.1 copied to clipboard
Unwrapper is a lightweight Flutter widget that lets you 'unwrap' a parent widget and render one of its inner children instead. It's useful for dynamically skipping layout wrappers (like Container, Pad [...]
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add unwrapper
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
unwrapper: ^0.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:unwrapper/unwrapper.dart';