You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
749B

  1. import 'package:flutter/material.dart';
  2. import '../../../../themes/styles_text.dart';
  3. class ItemColumnWidget extends StatelessWidget {
  4. final String title;
  5. double? textSize12;
  6. final Widget child;
  7. ItemColumnWidget({Key? key, required this.title, required this.child, this.textSize12}) : super(key: key);
  8. @override
  9. Widget build(BuildContext context) {
  10. return Container(
  11. child: Column(
  12. crossAxisAlignment: CrossAxisAlignment.start,
  13. children: [
  14. Text(
  15. title,
  16. style: textSize12 != null ? StylesText.body6.copyWith(fontSize: textSize12) : StylesText.body6,
  17. ),
  18. const SizedBox(
  19. height: 5,
  20. ),
  21. child,
  22. ],
  23. ),
  24. );
  25. }
  26. }