flutter_line 0.0.1 copy "flutter_line: ^0.0.1" to clipboard
flutter_line: ^0.0.1 copied to clipboard

Flutter 实现横竖向的分割线.

pub package

flutter_line #

Flutter 实现横竖向的分割线.

  • 支持横向分割线(类似系统的Divider)
  • 支持竖向分割线(类似系统的VerticalDivider)
  • 支持自定义分割线的宽度, 颜色, 高度, 间距等属性
  • 支持分割线的match_parent效果, VerticalDivider无法支持, 需要强制指定高度才行.

screenshot

Installation #

安装最新版本 pub package

Quick Start #


/// 横线, 默认
Line(axis: Axis.horizontal);

/// 竖线
Line(axis: Axis.vertical);

支持的属性:

/// 是否强制指定线条的大小
double? lineSize;

/// 线条的厚度
double thickness;

/// 线条的方向
Axis axis;

/// 缩进
double? indent;
double? endIndent;

/// 线条的颜色
Color color;

/// 线条的外边距
EdgeInsets? margin;

License #

MIT License

Copyright (c) 2023 angcyo

1
likes
150
points
16
downloads
screenshot

Publisher

verified publisherangcyo.com

Weekly Downloads

Flutter 实现横竖向的分割线.

Repository (GitHub)
View/report issues

Topics

#flutter #android #ui #line #divider

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_line