separated_column 3.0.3 copy "separated_column: ^3.0.3" to clipboard
separated_column: ^3.0.3 copied to clipboard

Flutter package for rendering Column widget that injects the separator in between the children.

example/main.dart

import 'package:flutter/material.dart';

import 'package:separated_column/separated_column.dart';

void main() {
  runApp(Application());
}

class Application extends StatelessWidget {
  const Application({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'SeparatedColumn',
      home: HomePage('SeparatedColumn'),
    );
  }
}

class HomePage extends StatelessWidget {
  final String title;

  HomePage(this.title);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: SeparatedColumn(
          children: <Widget>[
            Text("Item 1"),
            Text("Item 2"),
            Text("Item 3"),
          ],
          separatorBuilder: (BuildContext context, int index) {
            return Divider();
          },
          mainAxisSize: MainAxisSize.min,
          mainAxisAlignment: MainAxisAlignment.center,
        ),
      ),
    );
  }
}
17
likes
160
points
6.54k
downloads
screenshot

Publisher

verified publisheremaq.ba

Weekly Downloads

Flutter package for rendering Column widget that injects the separator in between the children.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on separated_column