DNLabel constructor

const DNLabel({
  1. Key? key,
  2. required String text,
  3. Widget? child,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
  5. EdgeInsetsGeometry? contentPadding,
  6. EdgeInsetsGeometry margin = const EdgeInsets.only(bottom: 20.0),
  7. List<Widget> actions = const [],
  8. double fontSize = 14.0,
  9. FontWeight fontWeight = FontWeight.w400,
  10. double spacing = 8.0,
})

레이블 텍스트와 내용, 액션 및 간격을 설정한다.

Implementation

const DNLabel({
  super.key,
  required this.text,
  this.child,
  this.padding = const EdgeInsets.all(0.0),
  this.contentPadding,
  this.margin = const EdgeInsets.only(bottom: 20.0),
  this.actions = const [],
  this.fontSize = 14.0,
  this.fontWeight = FontWeight.w400,
  this.spacing = 8.0,
});