separated_column 1.0.1+2

Flutter Android iOS web

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,
        ),
      ),
    );
  }
}
2
likes
100
pub points
75%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

anis.alibegic@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on separated_column