datetime_picker_theme.dart 732 B

1234567891011121314151617181920212223
  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 double containerHeight;
  9. final double titleHeight;
  10. final double itemHeight;
  11. const DatePickerTheme({
  12. this.cancelStyle = const TextStyle(color: Colors.black54, fontSize: 16),
  13. this.doneStyle = const TextStyle(color: Colors.blue, fontSize: 16),
  14. this.itemStyle = const TextStyle(color: Color(0xFF000046), fontSize: 18),
  15. this.backgroundColor = Colors.white,
  16. this.containerHeight = 210.0,
  17. this.titleHeight = 44.0,
  18. this.itemHeight = 36.0,
  19. });
  20. }