separated_column 3.0.4 copy "separated_column: ^3.0.4" to clipboard
separated_column: ^3.0.4 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;

  const HomePage(this.title, {Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(title),
      ),
      body: Center(
        child: SeparatedColumn(
          mainAxisSize: MainAxisSize.min,
          mainAxisAlignment: MainAxisAlignment.center,
          separatorBuilder: (BuildContext context, int index) => const Divider(),
          children: <Widget>[
            Text("Item 1"),
            Text("Item 2"),
            Text("Item 3"),
          ],
        ),
      ),
    );
  }
}
17
likes
150
points
17.7k
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