datetime_picker_theme.dart 781 B

12345678910111213141516171819202122232425
  1. import 'package:flutter/foundation.dart';
  2. import 'package:flutter/material.dart';
  3. class DatePickerTheme extends Diagnosticable {
  4. final TextStyle cancelStyle;
  5. final TextStyle doneStyle;
  6. final TextStyle itemStyle;
  7. final Color backgroundColor;
  8. final Color headerColor;
  9. final double containerHeight;
  10. final double titleHeight;
  11. final double itemHeight;
  12. const DatePickerTheme({
  13. this.cancelStyle = const TextStyle(color: Colors.black54, fontSize: 16),
  14. this.doneStyle = const TextStyle(color: Colors.blue, fontSize: 16),
  15. this.itemStyle = const TextStyle(color: Color(0xFF000046), fontSize: 18),
  16. this.backgroundColor = Colors.white,
  17. this.headerColor,
  18. this.containerHeight = 210.0,
  19. this.titleHeight = 44.0,
  20. this.itemHeight = 36.0,
  21. });
  22. }