TekioFormTitle constructor

TekioFormTitle({
  1. Key? key,
  2. String? title,
  3. String? subtitle,
})

Implementation

TekioFormTitle({
  super.key,
  this.title,
  this.subtitle,
}) : super(
        builder: (context) => Column(
          children: [
            if (title != null && title.isNotEmpty)
              Text(
                title,
                textAlign: TextAlign.center,
                style: Theme.of(context).textTheme.titleLarge,
              ),
            if (subtitle != null && subtitle.isNotEmpty)
              Text(
                subtitle,
                textAlign: TextAlign.center,
                style: Theme.of(context).textTheme.titleMedium,
              ),
          ],
        ),
      );