-
Notifications
You must be signed in to change notification settings - Fork 739
/
Copy pathdatetime_picker_theme.dart
32 lines (28 loc) · 1.04 KB
/
datetime_picker_theme.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
// Migrate DiagnosticableMixin to Diagnosticable until
// https://github.com/flutter/flutter/pull/51495 makes it into stable (v1.15.21)
class DatePickerTheme with DiagnosticableTreeMixin {
final TextStyle cancelStyle;
final TextStyle doneStyle;
final TextStyle itemStyle;
final Color backgroundColor;
final Color? headerColor;
final double containerHeight;
final double titleHeight;
final double itemHeight;
final BorderRadius? pickerBorderRadius;
final BorderRadius? headerBorderRadius;
const DatePickerTheme({
this.cancelStyle = const TextStyle(color: Colors.black54, fontSize: 16),
this.doneStyle = const TextStyle(color: Colors.blue, fontSize: 16),
this.itemStyle = const TextStyle(color: Color(0xFF000046), fontSize: 18),
this.backgroundColor = Colors.white,
this.headerColor,
this.containerHeight = 210.0,
this.titleHeight = 44.0,
this.itemHeight = 36.0,
this.pickerBorderRadius,
this.headerBorderRadius,
});
}