TextWidget constructor

TextWidget(
  1. {@required String data,
  2. double size,
  3. FontWeight weight,
  4. Color color: AmposColors.outerSpace,
  5. EdgeInsets margin: const EdgeInsets.all(0),
  6. EdgeInsets padding: const EdgeInsets.all(0)}
)

Implementation

TextWidget({
  @required String data,
  double size,
  FontWeight weight,
  Color color = AmposColors.outerSpace,
  EdgeInsets margin = const EdgeInsets.all(0),
  EdgeInsets padding = const EdgeInsets.all(0),
}) : super(
    margin: margin,
    padding: padding,
    child: Text(
      data,
      style: TextStyle(
        fontSize: size,
        color: color,
        fontWeight: weight,
      ),
    ));