intrinsic_size_overflow_box 0.1.1 copy "intrinsic_size_overflow_box: ^0.1.1" to clipboard
intrinsic_size_overflow_box: ^0.1.1 copied to clipboard

IntrinsicSizeOverflowBox widget, similar to `OverflowBox` except that the unconstrained width or height is sized to the intrinsic size of the child.

intrinsic_size_overflow_box #

Pub

A Flutter widget that imposes different constraints on its child than it gets from its parent, possibly allowing the child to overflow the parent.

Similar to OverflowBox except that the unconstrained width or height is sized to the intrinsic size of the child, instead of being assumed to be infinite, which allows IntrinsicSizeOverflowBox to be used in a Scrollable widget.

Try it out at: https://ronjb.github.io/intrinsic_size_overflow_box

Getting Started #

Add this to your app's pubspec.yaml file:

dependencies:
  intrinsic_size_overflow_box: ^0.1.0
copied to clipboard

Usage #

Then you have to import the package with:

import 'package:intrinsic_size_overflow_box/intrinsic_size_overflow_box.dart';
copied to clipboard

And use IntrinsicSizeOverflowBox where appropriate. For example:

ListView(
  children: const [
      IntrinsicSizeOverflowBox(
          maxWidth: 700.0,
          child: Text(text),
      ),
  ],
),
copied to clipboard
6
likes
150
points
130
downloads

Publisher

verified publisherronbooth.com

Weekly Downloads

2024.09.13 - 2025.03.28

IntrinsicSizeOverflowBox widget, similar to `OverflowBox` except that the unconstrained width or height is sized to the intrinsic size of the child.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on intrinsic_size_overflow_box