https://github.com/ronjb/float_column
Flutter FloatColumn widget for building a vertical column of widgets and text where the text wraps around floated widgets, similar to how CSS float works.
https://github.com/ronjb/float_column
css-float drop-cap flutter flutter-package widget
Last synced: 10 months ago
JSON representation
Flutter FloatColumn widget for building a vertical column of widgets and text where the text wraps around floated widgets, similar to how CSS float works.
- Host: GitHub
- URL: https://github.com/ronjb/float_column
- Owner: ronjb
- License: mit
- Created: 2021-04-06T15:13:09.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T20:09:16.000Z (11 months ago)
- Last Synced: 2025-04-18T07:52:04.004Z (10 months ago)
- Topics: css-float, drop-cap, flutter, flutter-package, widget
- Language: Dart
- Homepage:
- Size: 17.8 MB
- Stars: 26
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# float_column
[](https://pub.dev/packages/float_column)
Flutter FloatColumn widget for building a vertical column of widgets and text where the text wraps around floated widgets, similar to how CSS float works.
Try it out at: [https://ronjb.github.io/float_column](https://ronjb.github.io/float_column)
## Example
You can use it for drop caps and so much more:

## Example with right-to-left text

## FloatColumn widgets can be floated and nested

## Getting Started
Add this to your app's `pubspec.yaml` file:
```yaml
dependencies:
float_column: ^4.0.1
```
## Usage
Then you have to import the package with:
```dart
import 'package:float_column/float_column.dart';
```
And use `FloatColumn` where appropriate. For example:
```dart
FloatColumn(
children: const [
Floatable(
float: FCFloat.start,
padding: EdgeInsets.only(right: 8),
child: _Box(Text('Box 1')),
),
Floatable(
float: FCFloat.end,
clear: FCClear.both,
clearMinSpacing: 20,
padding: EdgeInsets.only(left: 8),
child: _Box(Text('Box 2')),
),
WrappableText(text: 'This text will wrap around the floated widgets...'),
],
),
```