buildCardStyleInput method

Widget buildCardStyleInput(
  1. BuildContext context
)

Implementation

Widget buildCardStyleInput(BuildContext context) {
  return Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: [
      Visibility(
        visible: cardStyleTopText != null,
        child: Column(
          children: [
            Text(
              cardStyleTopText ?? '',
              style: TextStyle(
                  fontSize: TDTheme.of(context).fontBodySmall!.size,
                  height: TDTheme.of(context).fontBodySmall!.height),
            ),
            const SizedBox(
              height: 8,
            ),
          ],
        ),
      ),
      buildNormalInput(context),
      Visibility(
        visible: cardStyleBottomText != null,
        child: Column(
          children: [
            const SizedBox(
              height: 8,
            ),
            Text(
              cardStyleBottomText ?? '',
              style: TextStyle(
                  color: TDTheme.of(context).errorColor6,
                  fontSize: TDTheme.of(context).fontBodySmall!.size,
                  height: TDTheme.of(context).fontBodySmall!.height),
            ),
          ],
        ),
      ),
    ],
  );
}