https://github.com/ronjb/intrinsic_size_overflow_box
A 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.
https://github.com/ronjb/intrinsic_size_overflow_box
flutter flutter-widget
Last synced: 5 months ago
JSON representation
A 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.
- Host: GitHub
- URL: https://github.com/ronjb/intrinsic_size_overflow_box
- Owner: ronjb
- License: mit
- Created: 2021-10-24T13:00:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-14T14:45:55.000Z (over 3 years ago)
- Last Synced: 2024-11-16T03:27:58.845Z (6 months ago)
- Topics: flutter, flutter-widget
- Language: Dart
- Homepage:
- Size: 1.19 MB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# intrinsic_size_overflow_box
[](https://pub.dev/packages/intrinsic_size_overflow_box)
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](https://ronjb.github.io/intrinsic_size_overflow_box)
## Getting Started
Add this to your app's `pubspec.yaml` file:
```yaml
dependencies:
intrinsic_size_overflow_box: ^0.1.0
```## Usage
Then you have to import the package with:
```dart
import 'package:intrinsic_size_overflow_box/intrinsic_size_overflow_box.dart';
```And use `IntrinsicSizeOverflowBox` where appropriate. For example:
```dart
ListView(
children: const [
IntrinsicSizeOverflowBox(
maxWidth: 700.0,
child: Text(text),
),
],
),
```