6 4 月 2026, 周一
  1. 在 「pubspec.yaml」 中依赖
element_ui: ^0.0.1

2.  import

import 'package:element_ui/widgets.dart';

默认情况下 「EBorder」 充满父组件。

EBorder( child: Text('data'), )

属性 类型 说明
child Widget 设置子组件
style EBorderStyle 设置边框样式
alignment Alignment.center<默认> 设置子组件对齐方式
type BorderType 【线的类型
/// 实线
solid,
/// 虚线
dashed
shape BorderShape 形状
/// 虚线
circle,
///矩形
rect,
///圆角矩形
rrect,
///圆角 类似足球场形状
round,
mainAxisSize mainAxisSize 【主轴尺寸】
默认:MainAxisSize.max <最大>

EBorder组件属性说明

Avatar photo

sion932